Home
last modified time | relevance | path

Searched refs:crypto_aead (Results 1 – 25 of 53) 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 …]
H A Dkrb5.h130 struct crypto_aead *crypto_krb5_prepare_encryption(const struct krb5_enctype *krb5,
137 struct crypto_aead *aead,
143 struct crypto_aead *aead,
/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()
/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,
70 struct crypto_aead *aead, in rxgk_decrypt()
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/crypto/
H A Dccm.c31 struct crypto_aead *child;
84 static int crypto_ccm_setkey(struct crypto_aead *aead, const u8 *key, in crypto_ccm_setkey()
105 static int crypto_ccm_setauthsize(struct crypto_aead *tfm, in crypto_ccm_setauthsize()
127 struct crypto_aead *aead = crypto_aead_reqtfm(req); in format_input()
169 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_auth()
227 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt_done()
284 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt()
324 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt_done()
343 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt()
389 static int crypto_ccm_init_tfm(struct crypto_aead *tfm) in crypto_ccm_init_tfm()
[all …]
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 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()
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()
/linux/drivers/crypto/xilinx/
H A Dzynqmp-aes-gcm.c80 struct crypto_aead *fbk_cipher;
139 struct crypto_aead *aead = crypto_aead_reqtfm(req); in zynqmp_aes_aead_cipher()
243 struct crypto_aead *aead = crypto_aead_reqtfm(req); in versal_aes_aead_cipher()
428 struct crypto_aead *aead = crypto_aead_reqtfm(req); in xilinx_handle_aes_req()
442 static int zynqmp_aes_aead_setkey(struct crypto_aead *aead, const u8 *key, in zynqmp_aes_aead_setkey()
469 static int zynqmp_paes_aead_setkey(struct crypto_aead *aead, const u8 *key, in zynqmp_paes_aead_setkey()
494 static int versal_aes_aead_setkey(struct crypto_aead *aead, const u8 *key, in versal_aes_aead_setkey()
537 static int versal_paes_aead_setkey(struct crypto_aead *aead, const u8 *key, in versal_paes_aead_setkey()
572 static int xilinx_aes_aead_setauthsize(struct crypto_aead *aead, in xilinx_aes_aead_setauthsize()
585 struct crypto_aead *aead = crypto_aead_reqtfm(req); in xilinx_aes_fallback_crypt()
[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/drivers/net/ovpn/
H A Dcrypto_aead.c56 static unsigned int ovpn_aead_crypto_tmp_size(struct crypto_aead *tfm, in ovpn_aead_crypto_tmp_size()
90 static u8 *ovpn_aead_crypto_tmp_iv(struct crypto_aead *aead, void *tmp) in ovpn_aead_crypto_tmp_iv()
110 static struct aead_request *ovpn_aead_crypto_tmp_req(struct crypto_aead *aead, in ovpn_aead_crypto_tmp_req()
130 static struct scatterlist *ovpn_aead_crypto_req_sg(struct crypto_aead *aead, in ovpn_aead_crypto_req_sg()
329 static struct crypto_aead *ovpn_aead_init(const char *title, in ovpn_aead_init()
334 struct crypto_aead *aead; in ovpn_aead_init()
H A Dcrypto.h43 struct crypto_aead *encrypt;
44 struct crypto_aead *decrypt;
/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/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/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()
541 struct crypto_aead *aead; in esp6_output_tail()
660 struct crypto_aead *aead; in esp6_output()
708 struct crypto_aead *aead = x->data; in esp_remove_trailer()
750 struct crypto_aead *aead = x->data; in esp6_input_done2()
887 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()
508 struct crypto_aead *aead; in esp_output_tail()
627 struct crypto_aead *aead; in esp_output()
675 struct crypto_aead *aead = x->data; in esp_remove_trailer()
718 struct crypto_aead *aead = x->data; in esp_input_done2()
848 struct crypto_aead *aead = x->data; in esp_input()
[all …]
/linux/net/tls/
H A Dtls_device_fallback.c41 struct crypto_aead *aead, char *aad, in tls_enc_record()
112 struct crypto_aead *aead) in tls_init_aead_request()
118 static struct aead_request *tls_alloc_aead_request(struct crypto_aead *aead, in tls_alloc_aead_request()
132 struct crypto_aead *aead, struct scatterlist *sg_in, in tls_enc_records()

123