Home
last modified time | relevance | path

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

1234

/linux/include/crypto/
A Daead.h75 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);
152 struct crypto_aead { struct
161 return container_of(tfm, struct crypto_aead, base); in __crypto_aead_cast()
191 static inline void crypto_free_aead(struct crypto_aead *tfm) in crypto_free_aead()
273 static inline u32 crypto_aead_get_flags(struct crypto_aead *tfm) in crypto_aead_get_flags()
304 int crypto_aead_setkey(struct crypto_aead *tfm,
[all …]
A Dcryptd.h53 struct crypto_aead base;
57 struct crypto_aead *tfm) in __cryptd_aead_cast()
65 struct crypto_aead *cryptd_aead_child(struct cryptd_aead *tfm);
/linux/net/mac80211/
A Daead_api.h9 struct crypto_aead *
13 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
17 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
21 void aead_key_free(struct crypto_aead *tfm);
A Daes_ccm.h14 static inline struct crypto_aead *
21 ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, in ieee80211_aes_ccm_encrypt()
31 ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, in ieee80211_aes_ccm_decrypt()
40 static inline void ieee80211_aes_key_free(struct crypto_aead *tfm) in ieee80211_aes_key_free()
A Daes_gcm.h13 static inline int ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, in ieee80211_aes_gcm_encrypt()
22 static inline int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, in ieee80211_aes_gcm_decrypt()
31 static inline struct crypto_aead *
38 static inline void ieee80211_aes_gcm_key_free(struct crypto_aead *tfm) in ieee80211_aes_gcm_key_free()
A Daead_api.c18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt()
50 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_decrypt()
85 struct crypto_aead *
89 struct crypto_aead *tfm; in aead_key_setup_encrypt()
110 void aead_key_free(struct crypto_aead *tfm) in aead_key_free()
A Daes_gmac.h15 struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[],
17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce,
19 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm);
A Daes_gmac.c17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac()
69 struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[], in ieee80211_aes_gmac_key_setup()
72 struct crypto_aead *tfm; in ieee80211_aes_gmac_key_setup()
89 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm) in ieee80211_aes_gmac_key_free()
/linux/crypto/
A Daead.c22 static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, in setkey_unaligned()
43 int crypto_aead_setkey(struct crypto_aead *tfm, in crypto_aead_setkey()
64 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize()
85 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_aead_encrypt()
102 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_aead_decrypt()
121 struct crypto_aead *aead = __crypto_aead_cast(tfm); in crypto_aead_exit_tfm()
129 struct crypto_aead *aead = __crypto_aead_cast(tfm); in crypto_aead_init_tfm()
202 .tfmsize = offsetof(struct crypto_aead, base),
214 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) in crypto_alloc_aead()
A Dgcm.c33 struct crypto_aead *child;
48 struct crypto_aead *child;
180 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_init_crypt()
414 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_enc_copy_hash()
468 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_verify()
503 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_decrypt()
695 struct crypto_aead *child = ctx->child; in crypto_rfc4106_setkey()
728 struct crypto_aead *child = ctx->child; in crypto_rfc4106_crypt()
794 struct crypto_aead *aead; in crypto_rfc4106_init_tfm()
903 struct crypto_aead *child = ctx->child; in crypto_rfc4543_setkey()
[all …]
A Dpcrypt.c32 struct crypto_aead *child;
37 struct crypto_aead *tfm) in pcrypt_tfm_ictx()
42 static int pcrypt_aead_setkey(struct crypto_aead *parent, in pcrypt_aead_setkey()
50 static int pcrypt_aead_setauthsize(struct crypto_aead *parent, in pcrypt_aead_setauthsize()
98 struct crypto_aead *aead = crypto_aead_reqtfm(req); in pcrypt_aead_encrypt()
145 struct crypto_aead *aead = crypto_aead_reqtfm(req); in pcrypt_aead_decrypt()
171 static int pcrypt_aead_init_tfm(struct crypto_aead *tfm) in pcrypt_aead_init_tfm()
177 struct crypto_aead *cipher; in pcrypt_aead_init_tfm()
199 static void pcrypt_aead_exit_tfm(struct crypto_aead *tfm) in pcrypt_aead_exit_tfm()
A Dccm.c30 struct crypto_aead *child;
130 struct crypto_aead *aead = crypto_aead_reqtfm(req); in format_input()
172 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_auth()
230 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt_done()
287 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt()
328 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt_done()
347 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt()
573 struct crypto_aead *child = ctx->child; in crypto_rfc4309_setkey()
608 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4309_crypt()
610 struct crypto_aead *child = ctx->child; in crypto_rfc4309_crypt()
[all …]
A Dsimd.c290 static int simd_aead_setkey(struct crypto_aead *tfm, const u8 *key, in simd_aead_setkey()
294 struct crypto_aead *child = &ctx->cryptd_tfm->base; in simd_aead_setkey()
302 static int simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in simd_aead_setauthsize()
305 struct crypto_aead *child = &ctx->cryptd_tfm->base; in simd_aead_setauthsize()
312 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_encrypt()
315 struct crypto_aead *child; in simd_aead_encrypt()
333 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_decrypt()
336 struct crypto_aead *child; in simd_aead_decrypt()
352 static void simd_aead_exit(struct crypto_aead *tfm) in simd_aead_exit()
359 static int simd_aead_init(struct crypto_aead *tfm) in simd_aead_init()
[all …]
A Dgeniv.c19 static int aead_geniv_setkey(struct crypto_aead *tfm, in aead_geniv_setkey()
27 static int aead_geniv_setauthsize(struct crypto_aead *tfm, in aead_geniv_setauthsize()
109 int aead_init_geniv(struct crypto_aead *aead) in aead_init_geniv()
113 struct crypto_aead *child; in aead_init_geniv()
153 void aead_exit_geniv(struct crypto_aead *tfm) in aead_exit_geniv()
A Dauthencesn.c49 static int crypto_authenc_esn_setauthsize(struct crypto_aead *authenc_esn, in crypto_authenc_esn_setauthsize()
58 static int crypto_authenc_esn_setkey(struct crypto_aead *authenc_esn, const u8 *key, in crypto_authenc_esn_setkey()
89 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_genicv_tail()
122 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_genicv()
169 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_copy()
183 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_encrypt()
222 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_decrypt_tail()
272 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_decrypt()
322 static int crypto_authenc_esn_init_tfm(struct crypto_aead *tfm) in crypto_authenc_esn_init_tfm()
372 static void crypto_authenc_esn_exit_tfm(struct crypto_aead *tfm) in crypto_authenc_esn_exit_tfm()
A Dauthenc.c84 static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in crypto_authenc_setkey()
115 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_done()
134 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_genicv()
179 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_copy_assoc()
194 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_encrypt()
232 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt_tail()
280 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt()
307 static int crypto_authenc_init_tfm(struct crypto_aead *tfm) in crypto_authenc_init_tfm()
354 static void crypto_authenc_exit_tfm(struct crypto_aead *tfm) in crypto_authenc_exit_tfm()
/linux/arch/x86/crypto/
A Daegis128-aesni-glue.c135 static struct aegis_ctx *crypto_aegis128_aesni_ctx(struct crypto_aead *aead) in crypto_aegis128_aesni_ctx()
142 static int crypto_aegis128_aesni_setkey(struct crypto_aead *aead, const u8 *key, in crypto_aegis128_aesni_setkey()
155 static int crypto_aegis128_aesni_setauthsize(struct crypto_aead *tfm, in crypto_aegis128_aesni_setauthsize()
170 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_crypt()
195 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_encrypt()
217 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_decrypt()
230 static int crypto_aegis128_aesni_init_tfm(struct crypto_aead *aead) in crypto_aegis128_aesni_init_tfm()
235 static void crypto_aegis128_aesni_exit_tfm(struct crypto_aead *aead) in crypto_aegis128_aesni_exit_tfm()
/linux/drivers/crypto/cavium/nitrox/
A Dnitrox_aead.c58 static int nitrox_aead_setauthsize(struct crypto_aead *aead, in nitrox_aead_setauthsize()
74 static int nitrox_aes_gcm_setauthsize(struct crypto_aead *aead, in nitrox_aes_gcm_setauthsize()
215 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in nitrox_aes_gcm_enc()
249 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in nitrox_aes_gcm_dec()
281 static int nitrox_aead_init(struct crypto_aead *aead) in nitrox_aead_init()
305 static int nitrox_gcm_common_init(struct crypto_aead *aead) in nitrox_gcm_common_init()
326 static int nitrox_aes_gcm_init(struct crypto_aead *aead) in nitrox_aes_gcm_init()
341 static void nitrox_aead_exit(struct crypto_aead *aead) in nitrox_aead_exit()
442 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in nitrox_rfc4106_enc()
474 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in nitrox_rfc4106_dec()
[all …]
/linux/include/crypto/internal/
A Daead.h37 static inline void *crypto_aead_ctx(struct crypto_aead *tfm) in crypto_aead_ctx()
53 static inline struct aead_instance *aead_alg_instance(struct crypto_aead *aead) in aead_alg_instance()
99 static inline struct crypto_aead *crypto_spawn_aead( in crypto_spawn_aead()
105 static inline void crypto_aead_set_reqsize(struct crypto_aead *aead, in crypto_aead_set_reqsize()
158 static inline unsigned int crypto_aead_chunksize(struct crypto_aead *tfm) in crypto_aead_chunksize()
A Dgeniv.h17 struct crypto_aead *child;
24 int aead_init_geniv(struct crypto_aead *tfm);
25 void aead_exit_geniv(struct crypto_aead *tfm);
/linux/drivers/crypto/xilinx/
A Dzynqmp-aes-gcm.c70 struct crypto_aead *fbk_cipher;
79 struct crypto_aead *aead = crypto_aead_reqtfm(req); in zynqmp_aes_aead_cipher()
209 struct crypto_aead *aead = crypto_aead_reqtfm(req); in zynqmp_handle_aes_req()
238 static int zynqmp_aes_aead_setkey(struct crypto_aead *aead, const u8 *key, in zynqmp_aes_aead_setkey()
270 static int zynqmp_aes_aead_setauthsize(struct crypto_aead *aead, in zynqmp_aes_aead_setauthsize()
284 struct crypto_aead *aead = crypto_aead_reqtfm(req); in zynqmp_aes_aead_encrypt()
297 struct crypto_aead *aead = crypto_aead_reqtfm(req); in zynqmp_aes_aead_decrypt()
307 static int zynqmp_aes_aead_init(struct crypto_aead *aead) in zynqmp_aes_aead_init()
339 static void zynqmp_aes_aead_exit(struct crypto_aead *aead) in zynqmp_aes_aead_exit()
/linux/drivers/crypto/
A Domap-aes.h204 int omap_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key,
206 int omap_aes_4106gcm_setkey(struct crypto_aead *tfm, const u8 *key,
210 int omap_aes_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize);
213 int omap_aes_4106gcm_setauthsize(struct crypto_aead *parent,
215 int omap_aes_gcm_cra_init(struct crypto_aead *tfm);
/linux/arch/arm64/crypto/
A Daes-ce-ccm-glue.c44 static int ccm_setkey(struct crypto_aead *tfm, const u8 *in_key, in ccm_setkey()
52 static int ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in ccm_setauthsize()
61 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_init_mac()
99 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_calculate_auth_mac()
148 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_encrypt()
205 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_decrypt()
/linux/drivers/crypto/ccree/
A Dcc_aead.c64 static void cc_aead_exit(struct crypto_aead *tfm) in cc_aead_exit()
125 static int cc_aead_init(struct crypto_aead *tfm) in cc_aead_init()
212 struct crypto_aead *tfm = crypto_aead_reqtfm(cc_req); in cc_aead_complete()
874 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_proc_digest_desc()
924 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_set_cipher_desc()
991 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_set_hmac_desc()
1024 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_set_xcbc_desc()
1100 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_proc_scheme_desc()
1162 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_mlli_to_sram()
1213 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cc_hmac_authenc()
[all …]
/linux/drivers/crypto/nx/
A Dnx.h142 struct crypto_aead;
145 int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm);
146 int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm);
154 void nx_crypto_ctx_aead_exit(struct crypto_aead *tfm);

Completed in 40 milliseconds

1234