projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff6f9f9
)
e_aes.c: additional sanity check in aes_xts_cipher.
author
Andy Polyakov
<appro@openssl.org>
Sat, 12 Nov 2011 13:26:36 +0000
(13:26 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Sat, 12 Nov 2011 13:26:36 +0000
(13:26 +0000)
crypto/evp/e_aes.c
patch
|
blob
|
history
diff --git
a/crypto/evp/e_aes.c
b/crypto/evp/e_aes.c
index 9db385f90e85099b25549a3cca047c6f6107f373..cd0af63819ee9815897adf035c5174fb0972c137 100644
(file)
--- a/
crypto/evp/e_aes.c
+++ b/
crypto/evp/e_aes.c
@@
-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 */