]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
* prng.c (krb5_c_random_make_octets): Fix to nfold into 15 bytes,
authorTom Yu <tlyu@mit.edu>
Wed, 23 Sep 1998 01:19:25 +0000 (01:19 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 23 Sep 1998 01:19:25 +0000 (01:19 +0000)
not one byte.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/marc-3des@10934 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/ChangeLog
src/lib/crypto/prng.c

index d5166d4609bc3ff6d08d5efb15813a587c0309cd..e95b2aaedf35c71f232d88898a881fecfd0a9d6c 100644 (file)
@@ -1,3 +1,8 @@
+Tue Sep 22 21:19:01 1998  Tom Yu  <tlyu@mit.edu>
+
+       * prng.c (krb5_c_random_make_octets): Fix to nfold into 15 bytes,
+       not one byte.
+
 Mon Sep 21 15:23:19 1998  Tom Yu  <tlyu@mit.edu>
 
        * prng.c (krb5_c_random_seed): Fix memory leak.
index f3fed096e66543f895595af7f80e6d6afddb53af..560300bb9c4587af43e4c1105b36aeb472e2abfa 100644 (file)
@@ -105,7 +105,7 @@ krb5_c_random_make_octets(krb5_context context, krb5_data *data)
 
            /* fold the new output back into the state */
 
-           krb5_nfold(OUTPUTSIZE*8, OUTPUT, STATESIZE, NEWSTATE);
+           krb5_nfold(OUTPUTSIZE*8, OUTPUT, STATESIZE*8, NEWSTATE);
            memcpy(STATE, NEWSTATE, STATESIZE);
 
            random_count = blocksize;