* pbkdf2.c (hmac1): Make a local copy of the supplied keyblock structure, in
authorKen Raeburn <raeburn@mit.edu>
Mon, 22 Mar 2004 22:07:20 +0000 (22:07 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 22 Mar 2004 22:07:20 +0000 (22:07 +0000)
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
src/lib/crypto/pbkdf2.c

index 933410005913c1aba5cf2367eae7d3045e769d8f..27b3c421e7821c08defc577f7c2ea18f5e29ec6e 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-22  Ken Raeburn  <raeburn@mit.edu>
+
+       * pbkdf2.c (hmac1): Make a local copy of the supplied keyblock
+       structure, in case we want to modify it.
+
 2004-03-17  Ken Raeburn  <raeburn@mit.edu>
 
        * prng.c (krb5int_prng_cleanup): Renamed from prng_cleanup.
index d7aba026ea621d3c74bbca115297b126ca1c1b49..ff446dbde74ab3567017c1418247936c882c00a0 100644 (file)
@@ -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;