Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/crypto/rijndael Pull up revision 1.11 (requested by...
details: https://anonhg.NetBSD.org/src/rev/3ef3b7ff245e
branches: netbsd-1-6
changeset: 530812:3ef3b7ff245e
user: tron <tron%NetBSD.org@localhost>
date: Sat Oct 04 09:50:04 2003 +0000
description:
Pull up revision 1.11 (requested by tv in ticket #1460):
missing IV handling in CBC mode (does not affect ESP code as we have
CBC handling in sys/netinet6/esp_core.c). sync w/kame
diffstat:
sys/crypto/rijndael/rijndael-api-fst.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 07d32a1b9959 -r 3ef3b7ff245e sys/crypto/rijndael/rijndael-api-fst.c
--- a/sys/crypto/rijndael/rijndael-api-fst.c Sat Oct 04 09:47:06 2003 +0000
+++ b/sys/crypto/rijndael/rijndael-api-fst.c Sat Oct 04 09:50:04 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rijndael-api-fst.c,v 1.10 2001/12/31 20:20:28 thorpej Exp $ */
+/* $NetBSD: rijndael-api-fst.c,v 1.10.10.1 2003/10/04 09:50:04 tron Exp $ */
/* $KAME: rijndael-api-fst.c,v 1.8 2001/03/02 05:53:05 itojun Exp $ */
/*
@@ -17,7 +17,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rijndael-api-fst.c,v 1.10 2001/12/31 20:20:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rijndael-api-fst.c,v 1.10.10.1 2003/10/04 09:50:04 tron Exp $");
#include <sys/param.h>
#ifdef _KERNEL
@@ -128,6 +128,7 @@
for (i = numBlocks - 1; i > 0; i--) {
#if 1 /*STRICT_ALIGN*/
memcpy(block, outBuffer, 16);
+ memcpy(iv, input, 16);
((word32*)block)[0] ^= ((word32*)iv)[0];
((word32*)block)[1] ^= ((word32*)iv)[1];
((word32*)block)[2] ^= ((word32*)iv)[2];
Home |
Main Index |
Thread Index |
Old Index