diff options
author | Andy Polyakov <appro@openssl.org> | 2011-04-18 20:19:23 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2011-04-18 20:19:23 +0000 |
commit | a0cc46f8e43a2f22403d12cbfe46e9469fa44b53 (patch) | |
tree | d87409ef0dda0403ae4325ca6f30071ddee11477 /crypto/modes | |
parent | 70d01a7f82136b681ae8c2d77e9ff487352d9e0d (diff) |
ccm128.c: fix Win32 compiler warning.
Diffstat (limited to 'crypto/modes')
-rw-r--r-- | crypto/modes/ccm128.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/modes/ccm128.c b/crypto/modes/ccm128.c index ad822c8fa8..f8746bbf15 100644 --- 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))); |