Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81126d1a authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Herbert Xu
Browse files

crypto: arm/aesbs - fix brokenness after skcipher conversion



The CBC encryption routine should use the encryption round keys, not
the decryption round keys.

Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 2debd332
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)