Home
last modified time | relevance | path

Searched refs:crypto_aes_ctx (Results 1 - 25 of 62) sorted by relevance

123

/kernel/linux/linux-5.10/include/crypto/
H A Daes.h25 struct crypto_aes_ctx { struct
68 int aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key,
77 void aes_encrypt(const struct crypto_aes_ctx *ctx, u8 *out, const u8 *in);
85 void aes_decrypt(const struct crypto_aes_ctx *ctx, u8 *out, const u8 *in);
/kernel/linux/linux-6.6/include/crypto/
H A Daes.h25 struct crypto_aes_ctx { struct
68 int aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key,
77 void aes_encrypt(const struct crypto_aes_ctx *ctx, u8 *out, const u8 *in);
85 void aes_decrypt(const struct crypto_aes_ctx *ctx, u8 *out, const u8 *in);
H A Dgcm.h69 struct crypto_aes_ctx aes_ctx;
/kernel/linux/linux-6.6/arch/x86/crypto/
H A Daesni-intel_glue.c45 #define CRYPTO_AES_CTX_SIZE (sizeof(struct crypto_aes_ctx) + AESNI_ALIGN_EXTRA)
54 struct crypto_aes_ctx aes_key_expanded AESNI_ALIGN_ATTR;
60 struct crypto_aes_ctx aes_key_expanded AESNI_ALIGN_ATTR;
64 u8 raw_tweak_ctx[sizeof(struct crypto_aes_ctx)] AESNI_ALIGN_ATTR;
65 u8 raw_crypt_ctx[sizeof(struct crypto_aes_ctx)] AESNI_ALIGN_ATTR;
83 asmlinkage int aesni_set_key(struct crypto_aes_ctx *ctx, const u8 *in_key,
87 asmlinkage void aesni_ecb_enc(struct crypto_aes_ctx *ctx, u8 *out,
89 asmlinkage void aesni_ecb_dec(struct crypto_aes_ctx *ctx, u8 *out,
91 asmlinkage void aesni_cbc_enc(struct crypto_aes_ctx *ctx, u8 *out,
93 asmlinkage void aesni_cbc_dec(struct crypto_aes_ctx *ct
[all...]
/kernel/linux/linux-5.10/crypto/
H A Daes_ti.c15 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aesti_set_key()
22 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aesti_encrypt()
38 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aesti_decrypt()
58 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
/kernel/linux/linux-6.6/crypto/
H A Daes_ti.c15 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aesti_set_key()
22 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aesti_encrypt()
38 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aesti_decrypt()
58 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
/kernel/linux/linux-5.10/arch/arm64/crypto/
H A Daes-ce-glue.c34 static int num_rounds(struct crypto_aes_ctx *ctx) in num_rounds()
48 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_cipher_encrypt()
62 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_cipher_decrypt()
74 int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in ce_aes_expandkey()
145 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ce_aes_setkey()
157 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
H A Daes-cipher-glue.c17 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_arm64_encrypt()
25 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_arm64_decrypt()
37 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
H A Daes-glue.c111 struct crypto_aes_ctx key1;
112 struct crypto_aes_ctx __aligned(8) key2;
116 struct crypto_aes_ctx key1;
117 struct crypto_aes_ctx __aligned(8) key2;
122 struct crypto_aes_ctx key;
134 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in skcipher_aes_setkey()
176 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt()
196 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_decrypt()
217 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt_walk()
246 struct crypto_aes_ctx *ct in cbc_decrypt_walk()
[all...]
H A Daes-ce-ccm-glue.c20 static int num_rounds(struct crypto_aes_ctx *ctx) in num_rounds()
49 struct crypto_aes_ctx *ctx = crypto_aead_ctx(tfm); in ccm_setkey()
99 static void ccm_update_mac(struct crypto_aes_ctx *key, u8 mac[], u8 const in[], in ccm_update_mac()
137 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_calculate_auth_mac()
175 struct crypto_aes_ctx *ctx, bool enc) in ccm_crypt_fallback()
225 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_encrypt()
282 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_decrypt()
347 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
H A Daes-neonbs-glue.c68 struct crypto_aes_ctx fallback;
74 struct crypto_aes_ctx cts;
81 struct crypto_aes_ctx rk; in aesbs_setkey()
140 struct crypto_aes_ctx rk; in aesbs_cbc_setkey()
274 struct crypto_aes_ctx rk; in aesbs_xts_setkey()
/kernel/linux/linux-6.6/arch/arm64/crypto/
H A Daes-ce-glue.c34 static int num_rounds(struct crypto_aes_ctx *ctx) in num_rounds()
48 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_cipher_encrypt()
62 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_cipher_decrypt()
74 int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in ce_aes_expandkey()
145 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ce_aes_setkey()
157 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
H A Daes-cipher-glue.c17 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_arm64_encrypt()
25 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_arm64_decrypt()
37 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
H A Daes-glue.c117 struct crypto_aes_ctx key1;
118 struct crypto_aes_ctx __aligned(8) key2;
122 struct crypto_aes_ctx key1;
123 struct crypto_aes_ctx __aligned(8) key2;
128 struct crypto_aes_ctx key;
140 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in skcipher_aes_setkey()
182 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt()
202 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_decrypt()
223 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt_walk()
252 struct crypto_aes_ctx *ct in cbc_decrypt_walk()
[all...]
H A Daes-ce-ccm-glue.c18 static int num_rounds(struct crypto_aes_ctx *ctx) in num_rounds()
47 struct crypto_aes_ctx *ctx = crypto_aead_ctx(tfm); in ccm_setkey()
100 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_calculate_auth_mac()
149 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_encrypt()
202 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_decrypt()
265 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
H A Daes-neonbs-glue.c71 struct crypto_aes_ctx cts;
78 struct crypto_aes_ctx rk; in aesbs_setkey()
137 struct crypto_aes_ctx rk; in aesbs_cbc_ctr_setkey()
255 struct crypto_aes_ctx rk; in aesbs_xts_setkey()
/kernel/linux/linux-5.10/arch/x86/crypto/
H A Daesni-intel_glue.c46 #define CRYPTO_AES_CTX_SIZE (sizeof(struct crypto_aes_ctx) + AESNI_ALIGN_EXTRA)
55 struct crypto_aes_ctx aes_key_expanded AESNI_ALIGN_ATTR;
61 struct crypto_aes_ctx aes_key_expanded AESNI_ALIGN_ATTR;
65 u8 raw_tweak_ctx[sizeof(struct crypto_aes_ctx)] AESNI_ALIGN_ATTR;
66 u8 raw_crypt_ctx[sizeof(struct crypto_aes_ctx)] AESNI_ALIGN_ATTR;
84 asmlinkage int aesni_set_key(struct crypto_aes_ctx *ctx, const u8 *in_key,
88 asmlinkage void aesni_ecb_enc(struct crypto_aes_ctx *ctx, u8 *out,
90 asmlinkage void aesni_ecb_dec(struct crypto_aes_ctx *ctx, u8 *out,
92 asmlinkage void aesni_cbc_enc(struct crypto_aes_ctx *ctx, u8 *out,
94 asmlinkage void aesni_cbc_dec(struct crypto_aes_ctx *ct
[all...]
/kernel/linux/linux-5.10/arch/arm/crypto/
H A Daes-ce-glue.c57 static int num_rounds(struct crypto_aes_ctx *ctx) in num_rounds()
69 static int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in ce_aes_expandkey()
140 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ce_aes_setkey()
146 struct crypto_aes_ctx key1;
147 struct crypto_aes_ctx __aligned(8) key2;
170 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt()
190 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_decrypt()
211 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt_walk()
241 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_decrypt_walk()
270 struct crypto_aes_ctx *ct in cts_cbc_encrypt()
[all...]
H A Daes-cipher-glue.c18 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_arm_encrypt()
26 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_arm_decrypt()
38 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
H A Daes-neonbs-glue.c62 struct crypto_aes_ctx fallback;
69 struct crypto_aes_ctx rk; in aesbs_setkey()
128 struct crypto_aes_ctx rk; in aesbs_cbc_setkey()
/kernel/linux/linux-6.6/arch/arm/crypto/
H A Daes-ce-glue.c57 static int num_rounds(struct crypto_aes_ctx *ctx) in num_rounds()
69 static int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in ce_aes_expandkey()
140 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ce_aes_setkey()
146 struct crypto_aes_ctx key1;
147 struct crypto_aes_ctx __aligned(8) key2;
170 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt()
190 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_decrypt()
211 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt_walk()
241 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_decrypt_walk()
270 struct crypto_aes_ctx *ct in cts_cbc_encrypt()
[all...]
H A Daes-cipher-glue.c18 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_arm_encrypt()
26 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_arm_decrypt()
38 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
H A Daes-neonbs-glue.c65 struct crypto_aes_ctx fallback;
72 struct crypto_aes_ctx rk; in aesbs_setkey()
131 struct crypto_aes_ctx rk; in aesbs_cbc_setkey()
/kernel/linux/linux-5.10/lib/crypto/
H A Daes.c185 int aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in aes_expandkey()
258 void aes_encrypt(const struct crypto_aes_ctx *ctx, u8 *out, const u8 *in) in aes_encrypt()
309 void aes_decrypt(const struct crypto_aes_ctx *ctx, u8 *out, const u8 *in) in aes_decrypt()
/kernel/linux/linux-6.6/lib/crypto/
H A Daes.c185 int aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in aes_expandkey()
258 void aes_encrypt(const struct crypto_aes_ctx *ctx, u8 *out, const u8 *in) in aes_encrypt()
309 void aes_decrypt(const struct crypto_aes_ctx *ctx, u8 *out, const u8 *in) in aes_decrypt()

Completed in 14 milliseconds

123