projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70d01a7
)
ccm128.c: fix Win32 compiler warning.
author
Andy Polyakov
<appro@openssl.org>
Mon, 18 Apr 2011 20:19:23 +0000
(20:19 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Mon, 18 Apr 2011 20:19:23 +0000
(20:19 +0000)
crypto/modes/ccm128.c
patch
|
blob
|
history
diff --git
a/crypto/modes/ccm128.c
b/crypto/modes/ccm128.c
index ad822c8fa8fb35bb24b771df8f8748519cbb24f9..f8746bbf154df110664d1c50dfce7fd70282ddef 100644
(file)
--- a/
crypto/modes/ccm128.c
+++ b/
crypto/modes/ccm128.c
@@
-116,7
+116,7
@@
void CRYPTO_ccm128_aad(CCM128_CONTEXT *ctx,
ctx->cmac.c[1] ^= (u8)alen;
i=2;
}
- else if (sizeof(alen)==8 && alen>=(size_t)1<<
32
) {
+ else if (sizeof(alen)==8 && alen>=(size_t)1<<
(32%(sizeof(alen)*8))
) {
ctx->cmac.c[0] ^= 0xFF;
ctx->cmac.c[1] ^= 0xFF;
ctx->cmac.c[2] ^= (u8)(alen>>(56%(sizeof(alen)*8)));