diff options
-rw-r--r-- | lib/crypto/aes_ccm_128.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/aes_ccm_128.c b/lib/crypto/aes_ccm_128.c index ac8e01f631d..94b980337c1 100644 --- a/lib/crypto/aes_ccm_128.c +++ b/lib/crypto/aes_ccm_128.c @@ -70,7 +70,7 @@ void aes_ccm_128_init(struct aes_ccm_128_context *ctx, */ if (a_total >= UINT32_MAX) { RSSVAL(ctx->B_i, 0, 0xFFFF); - RSBVAL(ctx->B_i, 2, a_total); + RSBVAL(ctx->B_i, 2, (uint64_t)a_total); ctx->B_i_ofs = 10; } else if (a_total >= 0xFF00) { RSSVAL(ctx->B_i, 0, 0xFFFE); |