Home
last modified time | relevance | path

Searched refs:crypto_aes_ctx (Results 1 – 24 of 24) sorted by relevance

/Linux-v5.4/include/crypto/
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);
/Linux-v5.4/arch/x86/crypto/
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,
86 asmlinkage void aesni_enc(struct crypto_aes_ctx *ctx, u8 *out,
88 asmlinkage void aesni_dec(struct crypto_aes_ctx *ctx, u8 *out,
90 asmlinkage void aesni_ecb_enc(struct crypto_aes_ctx *ctx, u8 *out,
92 asmlinkage void aesni_ecb_dec(struct crypto_aes_ctx *ctx, u8 *out,
[all …]
/Linux-v5.4/crypto/
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),
Daes_generic.c1138 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_aes_set_key()
1184 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_aes_encrypt()
1254 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_aes_decrypt()
1297 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
/Linux-v5.4/arch/arm64/crypto/
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()
163 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
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),
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()
105 static void ccm_update_mac(struct crypto_aes_ctx *key, u8 mac[], u8 const in[], in ccm_update_mac()
143 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_calculate_auth_mac()
181 struct crypto_aes_ctx *ctx, bool enc) in ccm_crypt_fallback()
231 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_encrypt()
288 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_decrypt()
353 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
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()
194 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt()
214 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_decrypt()
235 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt_walk()
264 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_decrypt_walk()
[all …]
Daes-ce-setkey.h5 int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key,
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()
273 struct crypto_aes_ctx rk; in aesbs_xts_setkey()
Dghash-ce-glue.c49 struct crypto_aes_ctx aes_key;
291 static int num_rounds(struct crypto_aes_ctx *ctx) in num_rounds()
/Linux-v5.4/arch/arm/crypto/
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()
152 struct crypto_aes_ctx key1;
153 struct crypto_aes_ctx __aligned(8) key2;
180 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt()
200 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_decrypt()
221 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt_walk()
251 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_decrypt_walk()
280 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cts_cbc_encrypt()
[all …]
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),
Daes-neonbs-glue.c63 struct crypto_aes_ctx fallback;
70 struct crypto_aes_ctx rk; in aesbs_setkey()
129 struct crypto_aes_ctx rk; in aesbs_cbc_setkey()
/Linux-v5.4/lib/crypto/
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()
/Linux-v5.4/drivers/crypto/inside-secure/
Dsafexcel_cipher.c276 struct crypto_aes_ctx aes; in safexcel_skcipher_aes_setkey()
311 struct crypto_aes_ctx aes; in safexcel_aead_setkey()
1282 struct crypto_aes_ctx aes; in safexcel_skcipher_aesctr_setkey()
1956 struct crypto_aes_ctx aes; in safexcel_skcipher_aesxts_setkey()
2072 struct crypto_aes_ctx aes; in safexcel_aead_gcm_setkey()
2190 struct crypto_aes_ctx aes; in safexcel_aead_ccm_setkey()
/Linux-v5.4/drivers/crypto/chelsio/chtls/
Dchtls_hw.c217 struct crypto_aes_ctx aes; in chtls_key_info()
/Linux-v5.4/drivers/crypto/ccp/
Dccp-crypto-aes-cmac.c264 struct crypto_aes_ctx aes; in ccp_aes_cmac_setkey()
/Linux-v5.4/drivers/crypto/
Dpadlock-aes.c111 struct crypto_aes_ctx gen_aes; in aes_set_key()
/Linux-v5.4/drivers/crypto/chelsio/
Dchcr_ipsec.c139 struct crypto_aes_ctx aes; in chcr_ipsec_setkey()
Dchcr_algo.c1026 struct crypto_aes_ctx aes; in chcr_update_tweak()
3357 struct crypto_aes_ctx aes; in chcr_gcm_setkey()
/Linux-v5.4/drivers/crypto/marvell/
Dcipher.c29 struct crypto_aes_ctx aes;
/Linux-v5.4/drivers/crypto/amcc/
Dcrypto4xx_alg.c530 struct crypto_aes_ctx ctx; in crypto4xx_compute_gcm_hash_key_sw()
/Linux-v5.4/net/bluetooth/
Dsmp.c381 struct crypto_aes_ctx ctx; in smp_e()