Error comparing Crypto.PublicKey.RSA.RSAobj_c objects

Bug #693614 reported by Dertalai
6
This bug affects 1 person
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-4ubuntu2
ProcVersionSignature: Ubuntu 2.6.32-26.48-generic 2.6.32.24+drm33.11
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

Revision history for this message
Dertalai (dertalai) wrote :
Revision history for this message
Dertalai (dertalai) wrote :
Revision history for this message
Sebastian Ramacher (s-ramacher) wrote :

Since 2.3-2 has been uploaded and the above snipped works as expected with the new version this bug can be closed.

Changed in python-crypto (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.