svn rev #21623: branches/aes-ccm/src/lib/crypto/enc_provider/
lhoward@MIT.EDU
lhoward at MIT.EDU
Mon Dec 29 00:55:27 EST 2008
http://src.mit.edu/fisheye/changelog/krb5/?cs=21623
Commit By: lhoward
Log Message:
fix an order of operations bug
Changed Files:
U branches/aes-ccm/src/lib/crypto/enc_provider/aes_ctr.c
Modified: branches/aes-ccm/src/lib/crypto/enc_provider/aes_ctr.c
===================================================================
--- branches/aes-ccm/src/lib/crypto/enc_provider/aes_ctr.c 2008-12-29 04:45:36 UTC (rev 21622)
+++ branches/aes-ccm/src/lib/crypto/enc_provider/aes_ctr.c 2008-12-29 05:55:26 UTC (rev 21623)
@@ -76,7 +76,7 @@
}
/* Maximum number of invocations with a given nonce and key */
-#define maxblocks(q) (1UL << (8 * q))
+#define maxblocks(q) (1UL << (8 * (q)))
/*
* ivec must be a correctly formatted counter block per SP800-38C A.3
More information about the cvs-krb5
mailing list