[PYTHON-CRYPTO] getattr problem in DSA.py
Igor Belyi
m24me at KATEHOK.HOMEIP.NET
Tue Mar 30 21:26:52 CEST 2004
Hello, I think there is a problem in DSA.py file distributed in M2Crypto which
prevents from accessing ['p', 'q', 'g', 'pub', 'priv'] fields of the DSA
object.
In the method '__getattr__(self, name)' of the 'class DSA' the line:
method = getattr(m2, 'm2.dsa_get_%s' % (name,))
should acctually be:
method = getattr(m2, 'dsa_get_%s' % (name,))
Sincerely,
Igor
More information about the python-crypto
mailing list