]> git.ipfire.org Git - thirdparty/krb5.git/commit
Improve builtin PBKDF2 code hygiene 548/head
authorGreg Hudson <ghudson@mit.edu>
Tue, 4 Oct 2016 15:35:29 +0000 (11:35 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 6 Oct 2016 14:45:44 +0000 (10:45 -0400)
commit66ae03f07dfe2ea876965ece14558c8fb253cb45
tree590eeb487b43b77974543eba6d6c7c83fd217493
parentfded9063c23daa3dbd9ffaf32f8145844293f472
Improve builtin PBKDF2 code hygiene

In F() in the builtin implementation of PBKDF2, use make_data() to
fully initialize sdata and out; otherwise we (harmlessly) copy an
uninitialized magic field in hmac().  Also simplify out the local
variable tlen.
src/lib/crypto/builtin/pbkdf2.c