Source-Changes-HG archive

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

[src/trunk]: src/sys/crypto/rijndael Revert my previous change. christos@ su...



details:   https://anonhg.NetBSD.org/src/rev/7b6acbe4beb5
branches:  trunk
changeset: 764968:7b6acbe4beb5
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Sat May 14 16:46:55 2011 +0000

description:
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.

diffstat:

 sys/crypto/rijndael/rijndael-api-fst.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r acb119e0af23 -r 7b6acbe4beb5 sys/crypto/rijndael/rijndael-api-fst.c
--- a/sys/crypto/rijndael/rijndael-api-fst.c    Sat May 14 16:27:49 2011 +0000
+++ b/sys/crypto/rijndael/rijndael-api-fst.c    Sat May 14 16:46:55 2011 +0000
@@ -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++;



Home | Main Index | Thread Index | Old Index