Subject: CVS commit: pkgsrc/security/py-crypto
From: Guillaume Lasmayous
Date: 2010-12-05 18:13:09
Message id: 20101205171310.1BFF8175DD@cvs.netbsd.org

Log Message:
Update py-crypto to version 2.3

pkgsrc changes:
 - add a patch to fix an hardcoded interpreter path
 - add a patch to actually find gmp library.
 - add CONFLICTS with py-amkCrypto, both have files in common.

upstream changes:

2.3
===
* Fix NameError when attempting to use deprecated getRandomNumber()
function.
* _slowmath: Compute RSA u parameter when it's not given to
RSA.construct. This makes _slowmath behave the same as _fastmath in
this regard.
* Make RSA.generate raise a more user-friendly exception message when
the user tries to generate a bogus-length key.

2.2
===
* Deprecated Crypto.Util.number.getRandomNumber(), which had confusing
semantics.  It's been replaced by getRandomNBitInteger and
getRandomInteger.  (Thanks: Lorenz Quack)
* Better isPrime() and getPrime() implementations that do a real
Rabin-Miller probabilistic primality test (not the phony test we did
before with fixed bases).  (Thanks: Lorenz Quack)
* getStrongPrime() implementation for generating RSA primes.
(Thanks: Lorenz Quack)
* Support for importing and exporting RSA keys in DER and PEM format
(Thanks: Legrandin)
* Fix PyCrypto when floor division (python -Qnew) is enabled.
* When building using gcc, use -std=c99 for compilation.  This should
fix building on FreeBSD and NetBSD.

Files:
RevisionActionfile
1.20modifypkgsrc/security/py-crypto/Makefile
1.6modifypkgsrc/security/py-crypto/PLIST
1.5modifypkgsrc/security/py-crypto/distinfo
1.4modifypkgsrc/security/py-crypto/patches/patch-ab
1.3addpkgsrc/security/py-crypto/patches/patch-aa
1.3addpkgsrc/security/py-crypto/patches/patch-ac