Home
last modified time | relevance | path

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

123

/linux/include/crypto/
H A Daead.h77 struct crypto_aead;
140 int (*setkey)(struct crypto_aead *tfm, const u8 *key,
142 int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize);
145 int (*init)(struct crypto_aead *tfm);
146 void (*exit)(struct crypto_aead *tfm);
155 struct crypto_aead { struct
163 struct crypto_aead base; argument
177 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) in __crypto_aead_cast()
179 return container_of(tfm, struct crypto_aead, base); in __crypto_aead_cast()
196 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask);
[all …]
/linux/include/crypto/internal/
H A Daead.h37 static inline void *crypto_aead_ctx(struct crypto_aead *tfm) in crypto_aead_ctx()
42 static inline void *crypto_aead_ctx_dma(struct crypto_aead *tfm) in crypto_aead_ctx_dma()
58 static inline struct aead_instance *aead_alg_instance(struct crypto_aead *aead) in aead_alg_instance()
114 static inline struct crypto_aead *crypto_spawn_aead( in crypto_spawn_aead()
120 static inline void crypto_aead_set_reqsize(struct crypto_aead *aead, in crypto_aead_set_reqsize()
126 static inline void crypto_aead_set_reqsize_dma(struct crypto_aead *aead, in crypto_aead_set_reqsize_dma()
155 static inline unsigned int crypto_aead_chunksize(struct crypto_aead *tfm) in crypto_aead_chunksize()
H A Ddes.h111 static inline int verify_aead_des_key(struct crypto_aead *tfm, const u8 *key, in verify_aead_des_key()
119 static inline int verify_aead_des3_key(struct crypto_aead *tfm, const u8 *key, in verify_aead_des3_key()
/linux/net/mac80211/
H 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);
H 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()
H 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()
H 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()
H A Daes_gmac.h14 struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[],
16 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce,
18 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm);
H A Daes_gmac.c17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac()
71 struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[], in ieee80211_aes_gmac_key_setup()
74 struct crypto_aead *tfm; in ieee80211_aes_gmac_key_setup()
91 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm) in ieee80211_aes_gmac_key_free()
/linux/net/rxrpc/
H A Drxgk_common.h29 struct crypto_aead *tx_enc; /* Transmission key */
30 struct crypto_aead *rx_enc; /* Reception key */
33 struct crypto_aead *resp_enc; /* Response packet enc key */
59 struct crypto_aead **token_key,
71 struct crypto_aead *aead, in rxgk_decrypt_skb()
H A Drxgk_kdf.c102 struct crypto_aead *aead; in rxgk_set_up_ciphers()
269 struct crypto_aead **token_aead, in rxgk_set_up_token_cipher()
275 struct crypto_aead *aead; in rxgk_set_up_token_cipher()
/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_aead.c33 static int nitrox_aes_gcm_setkey(struct crypto_aead *aead, const u8 *key, in nitrox_aes_gcm_setkey()
58 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()
359 static int nitrox_rfc4106_setkey(struct crypto_aead *aead, const u8 *key, in nitrox_rfc4106_setkey()
[all …]
/linux/arch/arm64/crypto/
H A Dsm4-ce-gcm-glue.c43 static int gcm_setkey(struct crypto_aead *tfm, const u8 *key, in gcm_setkey()
59 static int gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in gcm_setauthsize()
73 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_calculate_auth_mac()
137 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_crypt()
177 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_encrypt()
196 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_decrypt()
H A Dsm4-ce-ccm-glue.c30 static int ccm_setkey(struct crypto_aead *tfm, const u8 *key, in ccm_setkey()
45 static int ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in ccm_setauthsize()
55 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_format_input()
92 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_calculate_auth_mac()
193 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_encrypt()
220 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_decrypt()
/linux/crypto/
H A Dauthencesn.c47 static int crypto_authenc_esn_setauthsize(struct crypto_aead *authenc_esn, in crypto_authenc_esn_setauthsize()
56 static int crypto_authenc_esn_setkey(struct crypto_aead *authenc_esn, const u8 *key, in crypto_authenc_esn_setkey()
87 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_genicv_tail()
116 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_genicv()
161 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_encrypt()
200 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_decrypt_tail()
255 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_decrypt()
309 static int crypto_authenc_esn_init_tfm(struct crypto_aead *tfm) in crypto_authenc_esn_init_tfm()
349 static void crypto_authenc_esn_exit_tfm(struct crypto_aead *tfm) in crypto_authenc_esn_exit_tfm()
H A Dalgif_aead.c43 struct crypto_aead *tfm = pask->private; in aead_sufficient_data()
59 struct crypto_aead *tfm = pask->private; in aead_sendmsg()
73 struct crypto_aead *tfm = pask->private; in _aead_recvmsg()
295 struct crypto_aead *tfm; in aead_check_key()
394 struct crypto_aead *tfm = pask->private; in aead_sock_destruct()
407 struct crypto_aead *tfm = private; in aead_accept_parent_nokey()
436 struct crypto_aead *tfm = private; in aead_accept_parent()
H A Dauthenc.c82 static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in crypto_authenc_setkey()
112 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_finish()
147 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_genicv()
189 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_encrypt()
231 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()
304 static int crypto_authenc_init_tfm(struct crypto_aead *tfm) in crypto_authenc_init_tfm()
342 static void crypto_authenc_exit_tfm(struct crypto_aead *tfm) in crypto_authenc_exit_tfm()
H A Dessiv.c53 struct crypto_aead *aead;
93 static int essiv_aead_setkey(struct crypto_aead *tfm, const u8 *key, in essiv_aead_setkey()
126 static int essiv_aead_setauthsize(struct crypto_aead *tfm, in essiv_aead_setauthsize()
185 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in essiv_aead_crypt()
320 static int essiv_aead_init_tfm(struct crypto_aead *tfm) in essiv_aead_init_tfm()
325 struct crypto_aead *aead; in essiv_aead_init_tfm()
362 static void essiv_aead_exit_tfm(struct crypto_aead *tfm) in essiv_aead_exit_tfm()
H A Dseqiv.c24 struct crypto_aead *geniv; in seqiv_aead_encrypt_complete2()
49 struct crypto_aead *geniv = crypto_aead_reqtfm(req); in seqiv_aead_encrypt()
101 struct crypto_aead *geniv = crypto_aead_reqtfm(req); in seqiv_aead_decrypt()
/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c103 struct crypto_aead *tfm; in validate_hmac_cipher_null()
506 static int cpt_aead_init(struct crypto_aead *tfm, u8 cipher_type, u8 mac_type) in cpt_aead_init()
572 static int otx_cpt_aead_cbc_aes_sha1_init(struct crypto_aead *tfm) in otx_cpt_aead_cbc_aes_sha1_init()
577 static int otx_cpt_aead_cbc_aes_sha256_init(struct crypto_aead *tfm) in otx_cpt_aead_cbc_aes_sha256_init()
582 static int otx_cpt_aead_cbc_aes_sha384_init(struct crypto_aead *tfm) in otx_cpt_aead_cbc_aes_sha384_init()
587 static int otx_cpt_aead_cbc_aes_sha512_init(struct crypto_aead *tfm) in otx_cpt_aead_cbc_aes_sha512_init()
592 static int otx_cpt_aead_ecb_null_sha1_init(struct crypto_aead *tfm) in otx_cpt_aead_ecb_null_sha1_init()
597 static int otx_cpt_aead_ecb_null_sha256_init(struct crypto_aead *tfm) in otx_cpt_aead_ecb_null_sha256_init()
602 static int otx_cpt_aead_ecb_null_sha384_init(struct crypto_aead *tfm) in otx_cpt_aead_ecb_null_sha384_init()
607 static int otx_cpt_aead_ecb_null_sha512_init(struct crypto_aead *tfm) in otx_cpt_aead_ecb_null_sha512_init()
[all …]
/linux/drivers/crypto/qce/
H A Daead.h23 struct crypto_aead *fallback;
47 static inline struct qce_alg_template *to_aead_tmpl(struct crypto_aead *tfm) in to_aead_tmpl()
/linux/net/ipv6/
H A Desp6.c64 static void *esp_alloc_tmp(struct crypto_aead *aead, int nfrags, int seqihlen) in esp_alloc_tmp()
91 static inline u8 *esp_tmp_iv(struct crypto_aead *aead, void *tmp, int seqhilen) in esp_tmp_iv()
98 static inline struct aead_request *esp_tmp_req(struct crypto_aead *aead, u8 *iv) in esp_tmp_req()
108 static inline struct scatterlist *esp_req_sg(struct crypto_aead *aead, in esp_req_sg()
118 struct crypto_aead *aead = x->data; in esp_ssg_unref()
537 struct crypto_aead *aead; in esp6_output_tail()
654 struct crypto_aead *aead; in esp6_output()
702 struct crypto_aead *aead = x->data; in esp_remove_trailer()
744 struct crypto_aead *aead = x->data; in esp6_input_done2()
881 struct crypto_aead *aead = x->data; in esp6_input()
[all …]
/linux/net/ipv4/
H A Desp4.c47 static void *esp_alloc_tmp(struct crypto_aead *aead, int nfrags, int extralen) in esp_alloc_tmp()
74 static inline u8 *esp_tmp_iv(struct crypto_aead *aead, void *tmp, int extralen) in esp_tmp_iv()
81 static inline struct aead_request *esp_tmp_req(struct crypto_aead *aead, u8 *iv) in esp_tmp_req()
91 static inline struct scatterlist *esp_req_sg(struct crypto_aead *aead, in esp_req_sg()
101 struct crypto_aead *aead = x->data; in esp_ssg_unref()
505 struct crypto_aead *aead; in esp_output_tail()
622 struct crypto_aead *aead; in esp_output()
670 struct crypto_aead *aead = x->data; in esp_remove_trailer()
713 struct crypto_aead *aead = x->data; in esp_input_done2()
843 struct crypto_aead *aead = x->data; in esp_input()
[all …]
/linux/drivers/crypto/caam/
H A Dcaamalg.c146 static int aead_null_set_sh_desc(struct crypto_aead *aead) in aead_null_set_sh_desc()
196 static int aead_set_sh_desc(struct crypto_aead *aead) in aead_set_sh_desc()
327 static int aead_setauthsize(struct crypto_aead *authenc, in aead_setauthsize()
338 static int gcm_set_sh_desc(struct crypto_aead *aead) in gcm_set_sh_desc()
388 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize()
403 static int rfc4106_set_sh_desc(struct crypto_aead *aead) in rfc4106_set_sh_desc()
455 static int rfc4106_setauthsize(struct crypto_aead *authenc, in rfc4106_setauthsize()
471 static int rfc4543_set_sh_desc(struct crypto_aead *aead) in rfc4543_set_sh_desc()
523 static int rfc4543_setauthsize(struct crypto_aead *authenc, in rfc4543_setauthsize()
537 static int chachapoly_set_sh_desc(struct crypto_aead *aead) in chachapoly_set_sh_desc()
[all …]
H A Dcaamalg_qi.c85 static int aead_set_sh_desc(struct crypto_aead *aead) in aead_set_sh_desc()
190 static int aead_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in aead_setauthsize()
200 static int aead_setkey(struct crypto_aead *aead, const u8 *key, in aead_setkey()
288 static int des3_aead_setkey(struct crypto_aead *aead, const u8 *key, in des3_aead_setkey()
305 static int gcm_set_sh_desc(struct crypto_aead *aead) in gcm_set_sh_desc()
348 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize()
363 static int gcm_setkey(struct crypto_aead *aead, in gcm_setkey()
408 static int rfc4106_set_sh_desc(struct crypto_aead *aead) in rfc4106_set_sh_desc()
451 static int rfc4106_setauthsize(struct crypto_aead *authenc, in rfc4106_setauthsize()
467 static int rfc4106_setkey(struct crypto_aead *aead, in rfc4106_setkey()
[all …]

123