Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/crypto/rijndael correct binary key material handling. s...



details:   https://anonhg.NetBSD.org/src/rev/fabaf6a0f953
branches:  trunk
changeset: 510340:fabaf6a0f953
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sun May 27 01:40:16 2001 +0000

description:
correct binary key material handling.  sync with kame

diffstat:

 sys/crypto/rijndael/rijndael-api-fst.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fe6035a4215b -r fabaf6a0f953 sys/crypto/rijndael/rijndael-api-fst.c
--- a/sys/crypto/rijndael/rijndael-api-fst.c    Sun May 27 01:36:47 2001 +0000
+++ b/sys/crypto/rijndael/rijndael-api-fst.c    Sun May 27 01:40:16 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rijndael-api-fst.c,v 1.5 2001/03/02 15:42:39 itojun Exp $      */
+/*     $NetBSD: rijndael-api-fst.c,v 1.6 2001/05/27 01:40:16 itojun Exp $      */
 /*     $KAME: rijndael-api-fst.c,v 1.8 2001/03/02 05:53:05 itojun Exp $        */
 
 /*
@@ -49,7 +49,7 @@
        }
 
        if (keyMaterial != NULL) {
-               strncpy(key->keyMaterial, keyMaterial, keyLen/4);
+               memcpy(key->keyMaterial, keyMaterial, keyLen/8);
        }
 
        key->ROUNDS = keyLen/32 + 6;



Home | Main Index | Thread Index | Old Index