Home GnuPG

kdf: Make PBKDF2 check work on all platforms.
c478cf175887Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

kdf: Make PBKDF2 check work on all platforms.

* cipher/kdf.c (_gcry_kdf_pkdf2): Chnage DKLEN to unsigned long.

The previous pacth has no effect because on almost all platformans an
unsigned int is 32 bit and thus the 0xffffffff is anyway the largest
value. This patch changes the variable to an unsigned long so that at
least on common 64 bit Unix systems (but not on 64 bit Windows) there
is an actual check.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Mar 18 2016, 3:38 PM
Parents
rC0f741b0704ba: kdf: Add upper bound for derived key length in PBKDF2.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rCc478cf175887: kdf: Make PBKDF2 check work on all platforms. (authored by Werner Koch <wk@gnupg.org>).Mar 18 2016, 3:38 PM