Error comparing Crypto.PublicKey.RSA.RSAobj_c objects
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-crypto (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-crypto
not equal (!=) doesn't work property for RSAobj_c objects:
>>> a = RSA.generate(1024, ranfunc)
>>> z = RSA.generate(1024, ranfunc)
>>> aux = cPickle.dumps(a)
>>> b = cPickle.loads(aux) # copy of a
>>> a == z
False
>>> a == b
True
>>> b == z
False
>>> a != z
True
>>> a != b
True # <------ Error!!
>>> b != z
True
"!=" is always returning True
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: python-crypto 2.0.1+dfsg1-
ProcVersionSign
Uname: Linux 2.6.32-26-generic x86_64
Architecture: amd64
Date: Thu Dec 23 00:18:07 2010
EcryptfsInUse: Yes
ProcEnviron:
LANG=es_ES.utf8
SHELL=/bin/bash
SourcePackage: python-crypto
It seems to be fixed on 2.1.0alpha2 version: gitweb. pycrypto. org/?p= crypto/ pycrypto- 2.x.git; a=blob; f=ChangeLog; h=8075b68031e02 5d741e2b07be119 b2fc5becaec6; hb=9e9641d0a9b8 8f09683b5f26d3b 99c4a2e148da5
http://
Ubuntu still on 2.0.1 version.