Re: [Python-Dev] Right place for PBKDF2 wrapper

2013-10-14 Thread Serhiy Storchaka
14.10.13 13:07, Antoine Pitrou написав(ла): Le Mon, 14 Oct 2013 12:47:03 +0300, Serhiy Storchaka a écrit : 13.10.13 13:39, Christian Heimes написав(ла): Am 13.10.2013 08:32, schrieb Nick Coghlan: +1 to hashlib from me (especially since we used that as the best available home for compare_diges

Re: [Python-Dev] Right place for PBKDF2 wrapper

2013-10-14 Thread Antoine Pitrou
Le Mon, 14 Oct 2013 12:47:03 +0300, Serhiy Storchaka a écrit : > 13.10.13 13:39, Christian Heimes написав(ла): > > Am 13.10.2013 08:32, schrieb Nick Coghlan: > >> +1 to hashlib from me (especially since we used that as the best > >> available home for compare_digest). > > > > I'm afraid your memor

Re: [Python-Dev] Right place for PBKDF2 wrapper

2013-10-14 Thread Serhiy Storchaka
13.10.13 13:39, Christian Heimes написав(ла): Am 13.10.2013 08:32, schrieb Nick Coghlan: +1 to hashlib from me (especially since we used that as the best available home for compare_digest). I'm afraid your memory doesn't serve you well. :( compare_digest is implemented in _operator.c. Its offi

Re: [Python-Dev] Right place for PBKDF2 wrapper

2013-10-13 Thread Nick Coghlan
On 13 October 2013 20:39, Christian Heimes wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Am 13.10.2013 08:32, schrieb Nick Coghlan: >> +1 to hashlib from me (especially since we used that as the best >> available home for compare_digest). > > I'm afraid your memory doesn't serve y

Re: [Python-Dev] Right place for PBKDF2 wrapper

2013-10-13 Thread Christian Heimes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Am 13.10.2013 08:32, schrieb Nick Coghlan: > +1 to hashlib from me (especially since we used that as the best > available home for compare_digest). I'm afraid your memory doesn't serve you well. :( compare_digest is implemented in _operator.c. Its

Re: [Python-Dev] Right place for PBKDF2 wrapper

2013-10-12 Thread Nick Coghlan
On 13 Oct 2013 06:34, "Brett Cannon" wrote: > > > > > On Sat, Oct 12, 2013 at 1:19 PM, Christian Heimes wrote: >> >> Hi, >> >> I have written a interface to OpenSSL's PKCS5_PBKDF2_HMAC() function. It >> implements PKCS#5's password based key derivation function 2 with HMAC >> as pseudo-random fun

Re: [Python-Dev] Right place for PBKDF2 wrapper

2013-10-12 Thread Gregory P. Smith
On Sat, Oct 12, 2013 at 2:31 PM, Christian Heimes wrote: > Am 12.10.2013 23:04, schrieb Gregory P. Smith: > > agreed with any of these three. > > I'm going for hashlib.pbkdf2_hmac() for now. Right now it's just one > function. We can always add a new module for a high level interface later. > > >

Re: [Python-Dev] Right place for PBKDF2 wrapper

2013-10-12 Thread Christian Heimes
Am 12.10.2013 23:04, schrieb Gregory P. Smith: > agreed with any of these three. I'm going for hashlib.pbkdf2_hmac() for now. Right now it's just one function. We can always add a new module for a high level interface later. > that also makes sense... > > I'd leave hmac.py around through at leas

Re: [Python-Dev] Right place for PBKDF2 wrapper

2013-10-12 Thread Gregory P. Smith
On Sat, Oct 12, 2013 at 11:06 AM, Georg Brandl wrote: > Am 12.10.2013 19:37, schrieb Antoine Pitrou: > > On Sat, 12 Oct 2013 19:19:44 +0200 > > Christian Heimes wrote: > ... > >> * add PBKDF2 to ``hashlib`` > >> * make ``hashlib`` a package and add PBKDF2 to a new ``hashlib.kdf`` > module > >>

Re: [Python-Dev] Right place for PBKDF2 wrapper

2013-10-12 Thread Brett Cannon
On Sat, Oct 12, 2013 at 1:19 PM, Christian Heimes wrote: > Hi, > > I have written a interface to OpenSSL's PKCS5_PBKDF2_HMAC() function. It > implements PKCS#5's password based key derivation function 2 with HMAC > as pseudo-random function. It supports any digest that is supported by > OpenSSL, e

Re: [Python-Dev] Right place for PBKDF2 wrapper

2013-10-12 Thread Georg Brandl
Am 12.10.2013 19:37, schrieb Antoine Pitrou: > On Sat, 12 Oct 2013 19:19:44 +0200 > Christian Heimes wrote: >> Hi, >> >> I have written a interface to OpenSSL's PKCS5_PBKDF2_HMAC() function. It >> implements PKCS#5's password based key derivation function 2 with HMAC >> as pseudo-random function.

Re: [Python-Dev] Right place for PBKDF2 wrapper

2013-10-12 Thread Antoine Pitrou
On Sat, 12 Oct 2013 19:19:44 +0200 Christian Heimes wrote: > Hi, > > I have written a interface to OpenSSL's PKCS5_PBKDF2_HMAC() function. It > implements PKCS#5's password based key derivation function 2 with HMAC > as pseudo-random function. It supports any digest that is supported by > OpenSSL

[Python-Dev] Right place for PBKDF2 wrapper

2013-10-12 Thread Christian Heimes
Hi, I have written a interface to OpenSSL's PKCS5_PBKDF2_HMAC() function. It implements PKCS#5's password based key derivation function 2 with HMAC as pseudo-random function. It supports any digest that is supported by OpenSSL, e.g. SHA-1, SHA-256 and SHA-512. It's a low level inteface that takes