projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2debd33
)
crypto: arm/aesbs - fix brokenness after skcipher conversion
author
Ard Biesheuvel
<ard.biesheuvel@linaro.org>
Tue, 29 Nov 2016 17:23:36 +0000
(17:23 +0000)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 30 Nov 2016 12:01:51 +0000
(20:01 +0800)
The CBC encryption routine should use the encryption round keys, not
the decryption round keys.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/aesbs-glue.c
patch
|
blob
|
history
diff --git
a/arch/arm/crypto/aesbs-glue.c
b/arch/arm/crypto/aesbs-glue.c
index f5eafce1055763d977c59cc1cace9baefb37ae43..d8e06de72ef3eb86f838512ad949183df5e17eb0 100644
(file)
--- a/
arch/arm/crypto/aesbs-glue.c
+++ b/
arch/arm/crypto/aesbs-glue.c
@@
-113,7
+113,7
@@
static inline void aesbs_encrypt_one(struct crypto_skcipher *tfm,
{
struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
- AES_encrypt(src, dst, &ctx->
dec.rk
);
+ AES_encrypt(src, dst, &ctx->
enc
);
}
static int aesbs_cbc_encrypt(struct skcipher_request *req)