Module Name: src Committed By: jmmv Date: Sat May 14 16:46:55 UTC 2011
Modified Files: src/sys/crypto/rijndael: rijndael-api-fst.c Log Message: Revert my previous change. christos@ submitted a different fix pretty much at the same time. Did an update amd64 release build to ensure my change was really not needed. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/crypto/rijndael/rijndael-api-fst.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/crypto/rijndael/rijndael-api-fst.c diff -u src/sys/crypto/rijndael/rijndael-api-fst.c:1.23 src/sys/crypto/rijndael/rijndael-api-fst.c:1.24 --- src/sys/crypto/rijndael/rijndael-api-fst.c:1.23 Sat May 14 16:27:49 2011 +++ src/sys/crypto/rijndael/rijndael-api-fst.c Sat May 14 16:46:55 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: rijndael-api-fst.c,v 1.23 2011/05/14 16:27:49 jmmv Exp $ */ +/* $NetBSD: rijndael-api-fst.c,v 1.24 2011/05/14 16:46:55 jmmv Exp $ */ /** * rijndael-api-fst.c @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rijndael-api-fst.c,v 1.23 2011/05/14 16:27:49 jmmv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rijndael-api-fst.c,v 1.24 2011/05/14 16:46:55 jmmv Exp $"); #include <sys/param.h> #ifdef _KERNEL @@ -54,9 +54,7 @@ static void xor16(uint8_t *d, const uint8_t *a, const uint8_t* b) { - size_t i; - - for (i = 0; i < 4; i++) { + for (size_t i = 0; i < 4; i++) { *d++ = *a++ ^ *b++; *d++ = *a++ ^ *b++; *d++ = *a++ ^ *b++;