mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
e_aes.c: additional sanity check in aes_xts_cipher.
This commit is contained in:
parent
ff6f9f96fd
commit
32268b183f
@ -1113,7 +1113,7 @@ static int aes_xts_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
|
||||
EVP_AES_XTS_CTX *xctx = ctx->cipher_data;
|
||||
if (!xctx->xts.key1 || !xctx->xts.key2)
|
||||
return 0;
|
||||
if (!out || !in)
|
||||
if (!out || !in || len<AES_BLOCK_SIZE)
|
||||
return 0;
|
||||
#ifdef OPENSSL_FIPS
|
||||
/* Requirement of SP800-38E */
|
||||
|
Loading…
Reference in New Issue
Block a user