From dbf356071ca2612a0f613c850a2d8beffb1f4e48 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 22 Mar 2004 22:07:20 +0000 Subject: [PATCH] * pbkdf2.c (hmac1): Make a local copy of the supplied keyblock structure, in case we want to modify it. ticket: 2453 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16202 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/ChangeLog | 5 +++++ src/lib/crypto/pbkdf2.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/lib/crypto/ChangeLog b/src/lib/crypto/ChangeLog index 933410005..27b3c421e 100644 --- a/src/lib/crypto/ChangeLog +++ b/src/lib/crypto/ChangeLog @@ -1,3 +1,8 @@ +2004-03-22 Ken Raeburn + + * pbkdf2.c (hmac1): Make a local copy of the supplied keyblock + structure, in case we want to modify it. + 2004-03-17 Ken Raeburn * prng.c (krb5int_prng_cleanup): Renamed from prng_cleanup. diff --git a/src/lib/crypto/pbkdf2.c b/src/lib/crypto/pbkdf2.c index d7aba026e..ff446dbde 100644 --- a/src/lib/crypto/pbkdf2.c +++ b/src/lib/crypto/pbkdf2.c @@ -218,7 +218,10 @@ static krb5_error_code hmac1(const struct krb5_hash_provider *h, char tmp[40]; size_t blocksize, hashsize; krb5_error_code err; + krb5_keyblock k; + k = *key; + key = &k; if (debug_hmac) printk(" test key", key); blocksize = h->blocksize; -- 2.26.2