Home
last modified time | relevance | path

Searched refs:crypto_aead (Results 1 – 25 of 87) sorted by relevance

1234

/Linux-v4.19/include/crypto/
Daead.h74 struct crypto_aead;
137 int (*setkey)(struct crypto_aead *tfm, const u8 *key,
139 int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize);
142 int (*init)(struct crypto_aead *tfm);
143 void (*exit)(struct crypto_aead *tfm);
154 struct crypto_aead { struct
161 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) in __crypto_aead_cast() argument
163 return container_of(tfm, struct crypto_aead, base); in __crypto_aead_cast()
180 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask);
182 static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) in crypto_aead_tfm()
[all …]
Dmorus1280_glue.h46 void crypto_morus1280_glue_init_ops(struct crypto_aead *aead,
48 int crypto_morus1280_glue_setkey(struct crypto_aead *aead, const u8 *key,
50 int crypto_morus1280_glue_setauthsize(struct crypto_aead *tfm,
55 int cryptd_morus1280_glue_setkey(struct crypto_aead *aead, const u8 *key,
57 int cryptd_morus1280_glue_setauthsize(struct crypto_aead *aead,
61 int cryptd_morus1280_glue_init_tfm(struct crypto_aead *aead);
62 void cryptd_morus1280_glue_exit_tfm(struct crypto_aead *aead);
75 static int crypto_morus1280_##id##_init_tfm(struct crypto_aead *tfm) \
81 static void crypto_morus1280_##id##_exit_tfm(struct crypto_aead *tfm) \
124 .cra_ctxsize = sizeof(struct crypto_aead *), \
Dmorus640_glue.h46 void crypto_morus640_glue_init_ops(struct crypto_aead *aead,
48 int crypto_morus640_glue_setkey(struct crypto_aead *aead, const u8 *key,
50 int crypto_morus640_glue_setauthsize(struct crypto_aead *tfm,
55 int cryptd_morus640_glue_setkey(struct crypto_aead *aead, const u8 *key,
57 int cryptd_morus640_glue_setauthsize(struct crypto_aead *aead,
61 int cryptd_morus640_glue_init_tfm(struct crypto_aead *aead);
62 void cryptd_morus640_glue_exit_tfm(struct crypto_aead *aead);
75 static int crypto_morus640_##id##_init_tfm(struct crypto_aead *tfm) \
81 static void crypto_morus640_##id##_exit_tfm(struct crypto_aead *tfm) \
124 .cra_ctxsize = sizeof(struct crypto_aead *), \
Dcryptd.h69 struct crypto_aead base;
73 struct crypto_aead *tfm) in __cryptd_aead_cast()
81 struct crypto_aead *cryptd_aead_child(struct cryptd_aead *tfm);
/Linux-v4.19/arch/x86/crypto/
Daegis128-aesni-glue.c150 static struct aegis_ctx *crypto_aegis128_aesni_ctx(struct crypto_aead *aead) in crypto_aegis128_aesni_ctx()
157 static int crypto_aegis128_aesni_setkey(struct crypto_aead *aead, const u8 *key, in crypto_aegis128_aesni_setkey()
172 static int crypto_aegis128_aesni_setauthsize(struct crypto_aead *tfm, in crypto_aegis128_aesni_setauthsize()
187 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_crypt()
209 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_encrypt()
231 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_decrypt()
244 static int crypto_aegis128_aesni_init_tfm(struct crypto_aead *aead) in crypto_aegis128_aesni_init_tfm()
249 static void crypto_aegis128_aesni_exit_tfm(struct crypto_aead *aead) in crypto_aegis128_aesni_exit_tfm()
253 static int cryptd_aegis128_aesni_setkey(struct crypto_aead *aead, in cryptd_aegis128_aesni_setkey()
262 static int cryptd_aegis128_aesni_setauthsize(struct crypto_aead *aead, in cryptd_aegis128_aesni_setauthsize()
[all …]
Daegis256-aesni-glue.c150 static struct aegis_ctx *crypto_aegis256_aesni_ctx(struct crypto_aead *aead) in crypto_aegis256_aesni_ctx()
157 static int crypto_aegis256_aesni_setkey(struct crypto_aead *aead, const u8 *key, in crypto_aegis256_aesni_setkey()
172 static int crypto_aegis256_aesni_setauthsize(struct crypto_aead *tfm, in crypto_aegis256_aesni_setauthsize()
187 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis256_aesni_crypt()
209 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis256_aesni_encrypt()
231 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis256_aesni_decrypt()
244 static int crypto_aegis256_aesni_init_tfm(struct crypto_aead *aead) in crypto_aegis256_aesni_init_tfm()
249 static void crypto_aegis256_aesni_exit_tfm(struct crypto_aead *aead) in crypto_aegis256_aesni_exit_tfm()
253 static int cryptd_aegis256_aesni_setkey(struct crypto_aead *aead, in cryptd_aegis256_aesni_setkey()
262 static int cryptd_aegis256_aesni_setauthsize(struct crypto_aead *aead, in cryptd_aegis256_aesni_setauthsize()
[all …]
Daegis128l-aesni-glue.c150 static struct aegis_ctx *crypto_aegis128l_aesni_ctx(struct crypto_aead *aead) in crypto_aegis128l_aesni_ctx()
157 static int crypto_aegis128l_aesni_setkey(struct crypto_aead *aead, in crypto_aegis128l_aesni_setkey()
172 static int crypto_aegis128l_aesni_setauthsize(struct crypto_aead *tfm, in crypto_aegis128l_aesni_setauthsize()
187 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128l_aesni_crypt()
209 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128l_aesni_encrypt()
231 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128l_aesni_decrypt()
244 static int crypto_aegis128l_aesni_init_tfm(struct crypto_aead *aead) in crypto_aegis128l_aesni_init_tfm()
249 static void crypto_aegis128l_aesni_exit_tfm(struct crypto_aead *aead) in crypto_aegis128l_aesni_exit_tfm()
253 static int cryptd_aegis128l_aesni_setkey(struct crypto_aead *aead, in cryptd_aegis128l_aesni_setkey()
262 static int cryptd_aegis128l_aesni_setauthsize(struct crypto_aead *aead, in cryptd_aegis128l_aesni_setauthsize()
[all …]
Dmorus640_glue.c116 int crypto_morus640_glue_setkey(struct crypto_aead *aead, const u8 *key, in crypto_morus640_glue_setkey()
131 int crypto_morus640_glue_setauthsize(struct crypto_aead *tfm, in crypto_morus640_glue_setauthsize()
143 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_morus640_glue_crypt()
159 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_morus640_glue_encrypt()
183 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_morus640_glue_decrypt()
204 void crypto_morus640_glue_init_ops(struct crypto_aead *aead, in crypto_morus640_glue_init_ops()
212 int cryptd_morus640_glue_setkey(struct crypto_aead *aead, const u8 *key, in cryptd_morus640_glue_setkey()
222 int cryptd_morus640_glue_setauthsize(struct crypto_aead *aead, in cryptd_morus640_glue_setauthsize()
234 struct crypto_aead *aead = crypto_aead_reqtfm(req); in cryptd_morus640_glue_encrypt()
251 struct crypto_aead *aead = crypto_aead_reqtfm(req); in cryptd_morus640_glue_decrypt()
[all …]
Dmorus1280_glue.c116 int crypto_morus1280_glue_setkey(struct crypto_aead *aead, const u8 *key, in crypto_morus1280_glue_setkey()
135 int crypto_morus1280_glue_setauthsize(struct crypto_aead *tfm, in crypto_morus1280_glue_setauthsize()
147 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_morus1280_glue_crypt()
163 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_morus1280_glue_encrypt()
187 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_morus1280_glue_decrypt()
208 void crypto_morus1280_glue_init_ops(struct crypto_aead *aead, in crypto_morus1280_glue_init_ops()
216 int cryptd_morus1280_glue_setkey(struct crypto_aead *aead, const u8 *key, in cryptd_morus1280_glue_setkey()
226 int cryptd_morus1280_glue_setauthsize(struct crypto_aead *aead, in cryptd_morus1280_glue_setauthsize()
238 struct crypto_aead *aead = crypto_aead_reqtfm(req); in cryptd_morus1280_glue_encrypt()
255 struct crypto_aead *aead = crypto_aead_reqtfm(req); in cryptd_morus1280_glue_decrypt()
[all …]
/Linux-v4.19/net/mac80211/
Daead_api.h13 struct crypto_aead *
17 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
21 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
25 void aead_key_free(struct crypto_aead *tfm);
Daes_gcm.h16 static inline int ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, in ieee80211_aes_gcm_encrypt()
25 static inline int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, in ieee80211_aes_gcm_decrypt()
34 static inline struct crypto_aead *
41 static inline void ieee80211_aes_gcm_key_free(struct crypto_aead *tfm) in ieee80211_aes_gcm_key_free()
Daes_ccm.h17 static inline struct crypto_aead *
24 ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, in ieee80211_aes_ccm_encrypt()
34 ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, in ieee80211_aes_ccm_decrypt()
43 static inline void ieee80211_aes_key_free(struct crypto_aead *tfm) in ieee80211_aes_key_free()
Daead_api.c21 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt()
52 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_decrypt()
87 struct crypto_aead *
91 struct crypto_aead *tfm; in aead_key_setup_encrypt()
112 void aead_key_free(struct crypto_aead *tfm) in aead_key_free()
Daes_gmac.h18 struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[],
20 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce,
22 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm);
Daes_gmac.c20 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac()
59 struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[], in ieee80211_aes_gmac_key_setup()
62 struct crypto_aead *tfm; in ieee80211_aes_gmac_key_setup()
79 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm) in ieee80211_aes_gmac_key_free()
Dkey.h91 struct crypto_aead *tfm;
102 struct crypto_aead *tfm;
113 struct crypto_aead *tfm;
/Linux-v4.19/include/crypto/internal/
Daead.h42 static inline void *crypto_aead_ctx(struct crypto_aead *tfm) in crypto_aead_ctx()
58 static inline struct aead_instance *aead_alg_instance(struct crypto_aead *aead) in aead_alg_instance()
109 static inline struct crypto_aead *crypto_spawn_aead( in crypto_spawn_aead()
115 static inline void crypto_aead_set_reqsize(struct crypto_aead *aead, in crypto_aead_set_reqsize()
126 static inline unsigned int crypto_aead_maxauthsize(struct crypto_aead *aead) in crypto_aead_maxauthsize()
178 static inline unsigned int crypto_aead_chunksize(struct crypto_aead *tfm) in crypto_aead_chunksize()
Dgeniv.h22 struct crypto_aead *child;
30 int aead_init_geniv(struct crypto_aead *tfm);
31 void aead_exit_geniv(struct crypto_aead *tfm);
/Linux-v4.19/crypto/
Daead.c32 static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, in setkey_unaligned()
53 int crypto_aead_setkey(struct crypto_aead *tfm, in crypto_aead_setkey()
72 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize()
92 struct crypto_aead *aead = __crypto_aead_cast(tfm); in crypto_aead_exit_tfm()
100 struct crypto_aead *aead = __crypto_aead_cast(tfm); in crypto_aead_init_tfm()
182 .tfmsize = offsetof(struct crypto_aead, base),
185 static int aead_geniv_setkey(struct crypto_aead *tfm, in aead_geniv_setkey()
193 static int aead_geniv_setauthsize(struct crypto_aead *tfm, in aead_geniv_setauthsize()
288 int aead_init_geniv(struct crypto_aead *aead) in aead_init_geniv()
292 struct crypto_aead *child; in aead_init_geniv()
[all …]
Dgcm.c37 struct crypto_aead *child;
52 struct crypto_aead *child;
96 static int crypto_gcm_setkey(struct crypto_aead *aead, const u8 *key, in crypto_gcm_setkey()
155 static int crypto_gcm_setauthsize(struct crypto_aead *tfm, in crypto_gcm_setauthsize()
202 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_init_crypt()
436 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_enc_copy_hash()
490 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_verify()
525 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_decrypt()
543 static int crypto_gcm_init_tfm(struct crypto_aead *tfm) in crypto_gcm_init_tfm()
581 static void crypto_gcm_exit_tfm(struct crypto_aead *tfm) in crypto_gcm_exit_tfm()
[all …]
Dccm.c36 struct crypto_aead *child;
90 static int crypto_ccm_setkey(struct crypto_aead *aead, const u8 *key, in crypto_ccm_setkey()
118 static int crypto_ccm_setauthsize(struct crypto_aead *tfm, in crypto_ccm_setauthsize()
140 struct crypto_aead *aead = crypto_aead_reqtfm(req); in format_input()
182 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_auth()
240 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt_done()
297 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt()
338 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt_done()
357 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt()
403 static int crypto_ccm_init_tfm(struct crypto_aead *tfm) in crypto_ccm_init_tfm()
[all …]
Dauthencesn.c54 static int crypto_authenc_esn_setauthsize(struct crypto_aead *authenc_esn, in crypto_authenc_esn_setauthsize()
63 static int crypto_authenc_esn_setkey(struct crypto_aead *authenc_esn, const u8 *key, in crypto_authenc_esn_setkey()
104 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_genicv_tail()
137 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_genicv()
184 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_copy()
198 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_encrypt()
237 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_decrypt_tail()
287 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_decrypt()
337 static int crypto_authenc_esn_init_tfm(struct crypto_aead *tfm) in crypto_authenc_esn_init_tfm()
387 static void crypto_authenc_esn_exit_tfm(struct crypto_aead *tfm) in crypto_authenc_esn_exit_tfm()
Dpcrypt.c69 struct crypto_aead *child;
102 static int pcrypt_aead_setkey(struct crypto_aead *parent, in pcrypt_aead_setkey()
110 static int pcrypt_aead_setauthsize(struct crypto_aead *parent, in pcrypt_aead_setauthsize()
157 struct crypto_aead *aead = crypto_aead_reqtfm(req); in pcrypt_aead_encrypt()
199 struct crypto_aead *aead = crypto_aead_reqtfm(req); in pcrypt_aead_decrypt()
222 static int pcrypt_aead_init_tfm(struct crypto_aead *tfm) in pcrypt_aead_init_tfm()
228 struct crypto_aead *cipher; in pcrypt_aead_init_tfm()
250 static void pcrypt_aead_exit_tfm(struct crypto_aead *tfm) in pcrypt_aead_exit_tfm()
/Linux-v4.19/drivers/crypto/nx/
Dnx.h153 struct crypto_aead;
156 int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm);
157 int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm);
164 void nx_crypto_ctx_aead_exit(struct crypto_aead *tfm);
/Linux-v4.19/net/ipv6/
Desp6.c67 static void *esp_alloc_tmp(struct crypto_aead *aead, int nfrags, int seqihlen) in esp_alloc_tmp()
94 static inline u8 *esp_tmp_iv(struct crypto_aead *aead, void *tmp, int seqhilen) in esp_tmp_iv()
101 static inline struct aead_request *esp_tmp_req(struct crypto_aead *aead, u8 *iv) in esp_tmp_req()
111 static inline struct scatterlist *esp_req_sg(struct crypto_aead *aead, in esp_req_sg()
121 struct crypto_aead *aead = x->data; in esp_ssg_unref()
330 struct crypto_aead *aead; in esp6_output_tail()
441 struct crypto_aead *aead; in esp6_output()
488 struct crypto_aead *aead = x->data; in esp_remove_trailer()
533 struct crypto_aead *aead = x->data; in esp6_input_done2()
605 struct crypto_aead *aead = x->data; in esp6_input()
[all …]

1234