svn commit: r344143 - head/sys/opencrypto
Sean Eric Fagan
sef at FreeBSD.org
Fri Feb 15 04:15:44 UTC 2019
Author: sef
Date: Fri Feb 15 04:15:43 2019
New Revision: 344143
URL: https://svnweb.freebsd.org/changeset/base/344143
Log:
Fix another issue from r344141, having to do with size of a shift amount.
This did not show up in my testing.
Differential Revision: https://reviews.freebsd.org/D18592
Modified:
head/sys/opencrypto/cbc_mac.c
Modified: head/sys/opencrypto/cbc_mac.c
==============================================================================
--- head/sys/opencrypto/cbc_mac.c Fri Feb 15 04:01:59 2019 (r344142)
+++ head/sys/opencrypto/cbc_mac.c Fri Feb 15 04:15:43 2019 (r344143)
@@ -128,7 +128,7 @@ AES_CBC_MAC_Reinit(struct aes_cbc_mac_ctx *ctx, const
uint16_t sizeVal = htobe16(ctx->authDataLength);
bcopy(&sizeVal, ctx->staging_block, sizeof(sizeVal));
ctx->blockIndex = sizeof(sizeVal);
- } else if (ctx->authDataLength < (1UL<<32)) {
+ } else if (ctx->authDataLength < (1ULL<<32)) {
uint32_t sizeVal = htobe32(ctx->authDataLength);
ctx->staging_block[0] = 0xff;
ctx->staging_block[1] = 0xfe;
More information about the svn-src-all
mailing list