summaryrefslogtreecommitdiff
path: root/arch/powerpc/crypto
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-07-11 16:52:17 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2026-07-17 18:09:22 +1000
commitd4e273a5065f81ca86eca48cb3fed55867cc0115 (patch)
treeebd3b340c3ae90898578912e8a3dc03943d25f4c /arch/powerpc/crypto
parent86c7771a2e88a805d56abfa18545bdc0274f8d41 (diff)
downloadlinux-next-d4e273a5065f81ca86eca48cb3fed55867cc0115.tar.gz
linux-next-d4e273a5065f81ca86eca48cb3fed55867cc0115.zip
crypto: powerpc/aes - use bool for encryption/decryption flag
Use bool for the CBC encryption/decryption flag passed through p8_aes_cbc_crypt() to aes_p8_cbc_encrypt(). Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Breno Leitao <leitao@debian.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/powerpc/crypto')
-rw-r--r--arch/powerpc/crypto/aes_cbc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/crypto/aes_cbc.c b/arch/powerpc/crypto/aes_cbc.c
index 4a9f285f0970..9c271b4642c8 100644
--- a/arch/powerpc/crypto/aes_cbc.c
+++ b/arch/powerpc/crypto/aes_cbc.c
@@ -72,7 +72,7 @@ static int p8_aes_cbc_setkey(struct crypto_skcipher *tfm, const u8 *key,
return ret ? -EINVAL : 0;
}
-static int p8_aes_cbc_crypt(struct skcipher_request *req, int enc)
+static int p8_aes_cbc_crypt(struct skcipher_request *req, bool enc)
{
struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
const struct p8_aes_cbc_ctx *ctx = crypto_skcipher_ctx(tfm);
@@ -110,12 +110,12 @@ static int p8_aes_cbc_crypt(struct skcipher_request *req, int enc)
static int p8_aes_cbc_encrypt(struct skcipher_request *req)
{
- return p8_aes_cbc_crypt(req, 1);
+ return p8_aes_cbc_crypt(req, true);
}
static int p8_aes_cbc_decrypt(struct skcipher_request *req)
{
- return p8_aes_cbc_crypt(req, 0);
+ return p8_aes_cbc_crypt(req, false);
}
struct skcipher_alg p8_aes_cbc_alg = {