Skip to content

Commit

Permalink
no memcpy in kernel, on most of the platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
itojun committed May 27, 2001
1 parent 2c6ac4c commit 6b639e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kame/sys/crypto/rijndael/rijndael-api-fst.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: rijndael-api-fst.c,v 1.9 2001/05/27 01:38:30 itojun Exp $ */
/* $KAME: rijndael-api-fst.c,v 1.10 2001/05/27 09:34:18 itojun Exp $ */

/*
* rijndael-api-fst.c v2.3 April '2000
Expand Down Expand Up @@ -48,7 +48,7 @@ int rijndael_makeKey(keyInstance *key, BYTE direction, int keyLen, char *keyMate
}

if (keyMaterial != NULL) {
memcpy(key->keyMaterial, keyMaterial, keyLen/8);
bcopy(keyMaterial, key->keyMaterial, keyLen/8);
}

key->ROUNDS = keyLen/32 + 6;
Expand Down

0 comments on commit 6b639e7

Please sign in to comment.