diff options
author | Dave Kleikamp <dave.kleikamp@oracle.com> | 2015-10-05 15:08:51 (GMT) |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-10-08 13:36:48 (GMT) |
commit | a66d7f724a96d6fd279bfbd2ee488def6b081bea (patch) | |
tree | 2a5694986c166829d4959eaafe217491c9944abc /arch/sparc/crypto/camellia_glue.c | |
parent | 09185e2756a83763bcbfe51b308b85979f0de027 (diff) | |
download | linux-a66d7f724a96d6fd279bfbd2ee488def6b081bea.tar.xz |
crypto: sparc - initialize blkcipher.ivsize
Some of the crypto algorithms write to the initialization vector,
but no space has been allocated for it. This clobbers adjacent memory.
Cc: stable@vger.kernel.org
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/sparc/crypto/camellia_glue.c')
-rw-r--r-- | arch/sparc/crypto/camellia_glue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/crypto/camellia_glue.c b/arch/sparc/crypto/camellia_glue.c index 6bf2479..561a84d 100644 --- a/arch/sparc/crypto/camellia_glue.c +++ b/arch/sparc/crypto/camellia_glue.c @@ -274,6 +274,7 @@ static struct crypto_alg algs[] = { { .blkcipher = { .min_keysize = CAMELLIA_MIN_KEY_SIZE, .max_keysize = CAMELLIA_MAX_KEY_SIZE, + .ivsize = CAMELLIA_BLOCK_SIZE, .setkey = camellia_set_key, .encrypt = cbc_encrypt, .decrypt = cbc_decrypt, |