diff options
Diffstat (limited to 'src/crypto/fipsmodule/cipher/e_aesccm.c')
-rw-r--r-- | src/crypto/fipsmodule/cipher/e_aesccm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/fipsmodule/cipher/e_aesccm.c b/src/crypto/fipsmodule/cipher/e_aesccm.c index c00bf61e..295aa056 100644 --- a/src/crypto/fipsmodule/cipher/e_aesccm.c +++ b/src/crypto/fipsmodule/cipher/e_aesccm.c @@ -86,7 +86,7 @@ static int CRYPTO_ccm128_init(struct ccm128_context *ctx, const AES_KEY *key, } static size_t CRYPTO_ccm128_max_input(const struct ccm128_context *ctx) { - return ctx->L >= sizeof(size_t) ? (size_t)-1 + return ctx->L >= sizeof(size_t) ? SIZE_MAX : (((size_t)1) << (ctx->L * 8)) - 1; } |