summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHarsh Jain <h.jain@amd.com>2025-09-15 16:30:26 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2025-10-17 11:03:57 +0300
commitba0570bdf1d9956a63db2ddc50fa6a78d8c93f30 (patch)
tree131376f6d8208386c39e8b1cb66b6d0444955848 /include
parent6c4fed5fee42f5785e881ef2c28359724b18b80e (diff)
downloadlinux-ba0570bdf1d9956a63db2ddc50fa6a78d8c93f30.tar.xz
crypto: drbg - Replace AES cipher calls with library calls
Replace aes used in drbg with library calls. Signed-off-by: Harsh Jain <h.jain@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r--include/crypto/df_sp80090a.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/crypto/df_sp80090a.h b/include/crypto/df_sp80090a.h
index 182865538662..6b25305fe611 100644
--- a/include/crypto/df_sp80090a.h
+++ b/include/crypto/df_sp80090a.h
@@ -8,6 +8,7 @@
#define _CRYPTO_DF80090A_H
#include <crypto/internal/cipher.h>
+#include <crypto/aes.h>
static inline int crypto_drbg_ctr_df_datalen(u8 statelen, u8 blocklen)
{
@@ -17,7 +18,7 @@ static inline int crypto_drbg_ctr_df_datalen(u8 statelen, u8 blocklen)
statelen + blocklen; /* temp */
}
-int crypto_drbg_ctr_df(struct crypto_cipher *tfm,
+int crypto_drbg_ctr_df(struct crypto_aes_ctx *aes,
unsigned char *df_data,
size_t bytes_to_return,
struct list_head *seedlist,