mozilla/PyVEP — Issue #3: m2crypto throws a segfault on MAC OS X
Author: tarekziade
Created: 2012-02-02 21:10:44+00:00
State: open

```python
>>> import vep
>>> vep.DummyVerifier.make_assertion("t@m.com", "http://e.com")
Segmentation fault: 11
```

It happens on the dsa128 sign() call, but if I take the digest that fails with vep and do a manual sign, it works:

```python
>>> from M2Crypto import DSA
>>> digest = '~A\xd8\xaa\xec\x02\xf5\xfb\x92\xb44\x87\x1c<\xa9:\xba\xa2\xd4J'
>>> dsa = DSA.gen_params(1024)
>>> dsa.gen_key()
>>> dsa.sign(digest)
('\x00\x00\x00\x14.\xe4\x16\x0f\x98\xa3Jb\xfd\xf1\xc0x_\x08\xfdy\x15\x153\xd6', '\x00\x00\x00\x15\x00\xda\x98i\x8c\xfdR\xe7\x157-\xdb\x8d?7\xb7FF\xf6\x13o')
```

So it looks like an issue in the way we initialize the key, but I am not sure what