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
This commit is contained in:
sef 2019-02-15 04:15:43 +00:00
parent ed05b7c613
commit c9afb7f6b3

View File

@ -128,7 +128,7 @@ AES_CBC_MAC_Reinit(struct aes_cbc_mac_ctx *ctx, const uint8_t *nonce, uint16_t n
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;