diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-07-11 16:52:17 +0200 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2026-07-17 18:09:22 +1000 |
| commit | d4e273a5065f81ca86eca48cb3fed55867cc0115 (patch) | |
| tree | ebd3b340c3ae90898578912e8a3dc03943d25f4c /include | |
| parent | 86c7771a2e88a805d56abfa18545bdc0274f8d41 (diff) | |
| download | linux-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 'include')
| -rw-r--r-- | include/crypto/aes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/aes.h b/include/crypto/aes.h index 16fbfd93e2bd..3279cfa54608 100644 --- a/include/crypto/aes.h +++ b/include/crypto/aes.h @@ -259,7 +259,7 @@ int aes_p8_set_decrypt_key(const u8 *userKey, const int bits, void aes_p8_encrypt(const u8 *in, u8 *out, const struct p8_aes_key *key); void aes_p8_decrypt(const u8 *in, u8 *out, const struct p8_aes_key *key); void aes_p8_cbc_encrypt(const u8 *in, u8 *out, size_t len, - const struct p8_aes_key *key, u8 *iv, const int enc); + const struct p8_aes_key *key, u8 *iv, bool enc); void aes_p8_ctr32_encrypt_blocks(const u8 *in, u8 *out, size_t len, const struct p8_aes_key *key, const u8 *iv); void aes_p8_xts_encrypt(const u8 *in, u8 *out, size_t len, |
