Home
last modified time | relevance | path

Searched refs:aead_request (Results 1 – 25 of 85) sorted by relevance

1234

/linux-6.1.9/include/crypto/
Daead.h89 struct aead_request { struct
142 int (*encrypt)(struct aead_request *req);
143 int (*decrypt)(struct aead_request *req);
321 static inline struct crypto_aead *crypto_aead_reqtfm(struct aead_request *req) in crypto_aead_reqtfm()
345 int crypto_aead_encrypt(struct aead_request *req);
369 int crypto_aead_decrypt(struct aead_request *req);
401 static inline void aead_request_set_tfm(struct aead_request *req, in aead_request_set_tfm()
418 static inline struct aead_request *aead_request_alloc(struct crypto_aead *tfm, in aead_request_alloc()
421 struct aead_request *req; in aead_request_alloc()
435 static inline void aead_request_free(struct aead_request *req) in aead_request_free()
[all …]
/linux-6.1.9/crypto/
Dgcm.c40 struct aead_request subreq;
54 struct aead_request subreq;
60 int (*complete)(struct aead_request *req, u32 flags);
82 static int crypto_rfc4543_copy_src_to_dst(struct aead_request *req, bool enc);
85 struct aead_request *req) in crypto_gcm_reqctx()
152 static void crypto_gcm_init_common(struct aead_request *req) in crypto_gcm_init_common()
177 static void crypto_gcm_init_crypt(struct aead_request *req, in crypto_gcm_init_crypt()
202 static int gcm_hash_update(struct aead_request *req, in gcm_hash_update()
216 static int gcm_hash_remain(struct aead_request *req, in gcm_hash_remain()
223 static int gcm_hash_len(struct aead_request *req, u32 flags) in gcm_hash_len()
[all …]
Dseqiv.c21 static void seqiv_aead_encrypt_complete2(struct aead_request *req, int err) in seqiv_aead_encrypt_complete2()
23 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt_complete2()
42 struct aead_request *req = base->data; in seqiv_aead_encrypt_complete()
48 static int seqiv_aead_encrypt(struct aead_request *req) in seqiv_aead_encrypt()
52 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt()
109 static int seqiv_aead_decrypt(struct aead_request *req) in seqiv_aead_decrypt()
113 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_decrypt()
Dchacha20poly1305.c70 static inline void async_done_continue(struct aead_request *req, int err, in async_done_continue()
71 int (*cont)(struct aead_request *)) in async_done_continue() argument
84 static void chacha_iv(u8 *iv, struct aead_request *req, u32 icb) in chacha_iv()
95 static int poly_verify_tag(struct aead_request *req) in poly_verify_tag()
108 static int poly_copy_tag(struct aead_request *req) in poly_copy_tag()
123 static int chacha_decrypt(struct aead_request *req) in chacha_decrypt()
154 static int poly_tail_continue(struct aead_request *req) in poly_tail_continue()
169 static int poly_tail(struct aead_request *req) in poly_tail()
199 static int poly_cipherpad(struct aead_request *req) in poly_cipherpad()
228 static int poly_cipher(struct aead_request *req) in poly_cipher()
[all …]
Dpcrypt.c61 struct aead_request *req = pcrypt_request_ctx(preq); in pcrypt_aead_serial()
68 struct aead_request *req = areq->data; in pcrypt_aead_done()
80 struct aead_request *req = pcrypt_request_ctx(preq); in pcrypt_aead_enc()
92 static int pcrypt_aead_encrypt(struct aead_request *req) in pcrypt_aead_encrypt()
96 struct aead_request *creq = pcrypt_request_ctx(preq); in pcrypt_aead_encrypt()
127 struct aead_request *req = pcrypt_request_ctx(preq); in pcrypt_aead_dec()
139 static int pcrypt_aead_decrypt(struct aead_request *req) in pcrypt_aead_decrypt()
143 struct aead_request *creq = pcrypt_request_ctx(preq); in pcrypt_aead_decrypt()
193 sizeof(struct aead_request) + in pcrypt_aead_init_tfm()
Dauthencesn.c43 static void authenc_esn_request_complete(struct aead_request *req, int err) in authenc_esn_request_complete()
86 static int crypto_authenc_esn_genicv_tail(struct aead_request *req, in crypto_authenc_esn_genicv_tail()
113 struct aead_request *req = areq->data; in authenc_esn_geniv_ahash_done()
119 static int crypto_authenc_esn_genicv(struct aead_request *req, in crypto_authenc_esn_genicv()
159 struct aead_request *areq = req->data; in crypto_authenc_esn_encrypt_done()
167 static int crypto_authenc_esn_copy(struct aead_request *req, unsigned int len) in crypto_authenc_esn_copy()
181 static int crypto_authenc_esn_encrypt(struct aead_request *req) in crypto_authenc_esn_encrypt()
219 static int crypto_authenc_esn_decrypt_tail(struct aead_request *req, in crypto_authenc_esn_decrypt_tail()
264 struct aead_request *req = areq->data; in authenc_esn_verify_ahash_done()
270 static int crypto_authenc_esn_decrypt(struct aead_request *req) in crypto_authenc_esn_decrypt()
Dechainiv.c26 static int echainiv_encrypt(struct aead_request *req) in echainiv_encrypt()
30 struct aead_request *subreq = aead_request_ctx(req); in echainiv_encrypt()
85 static int echainiv_decrypt(struct aead_request *req) in echainiv_decrypt()
89 struct aead_request *subreq = aead_request_ctx(req); in echainiv_decrypt()
Dauthenc.c40 static void authenc_request_complete(struct aead_request *req, int err) in authenc_request_complete()
114 struct aead_request *req = areq->data; in authenc_geniv_ahash_done()
132 static int crypto_authenc_genicv(struct aead_request *req, unsigned int flags) in crypto_authenc_genicv()
166 struct aead_request *areq = req->data; in crypto_authenc_encrypt_done()
177 static int crypto_authenc_copy_assoc(struct aead_request *req) in crypto_authenc_copy_assoc()
192 static int crypto_authenc_encrypt(struct aead_request *req) in crypto_authenc_encrypt()
229 static int crypto_authenc_decrypt_tail(struct aead_request *req, in crypto_authenc_decrypt_tail()
267 struct aead_request *req = areq->data; in authenc_verify_ahash_done()
278 static int crypto_authenc_decrypt(struct aead_request *req) in crypto_authenc_decrypt()
Dccm.c37 struct aead_request subreq;
62 struct aead_request *req) in crypto_ccm_reqctx()
127 static int format_input(u8 *info, struct aead_request *req, in format_input()
168 static int crypto_ccm_auth(struct aead_request *req, struct scatterlist *plain, in crypto_ccm_auth()
229 struct aead_request *req = areq->data; in crypto_ccm_encrypt_done()
250 static int crypto_ccm_init_crypt(struct aead_request *req, u8 *tag) in crypto_ccm_init_crypt()
285 static int crypto_ccm_encrypt(struct aead_request *req) in crypto_ccm_encrypt()
326 struct aead_request *req = areq->data; in crypto_ccm_decrypt_done()
345 static int crypto_ccm_decrypt(struct aead_request *req) in crypto_ccm_decrypt()
604 static struct aead_request *crypto_rfc4309_crypt(struct aead_request *req) in crypto_rfc4309_crypt()
[all …]
/linux-6.1.9/drivers/crypto/
Domap-aes-gcm.c27 struct aead_request *req);
31 struct aead_request *req = dd->aead_req; in omap_aes_gcm_finish_req()
89 struct aead_request *req) in omap_aes_gcm_copy_buffers()
174 static int do_encrypt_iv(struct aead_request *req, u32 *tag, u32 *iv) in do_encrypt_iv()
207 struct aead_request *req) in omap_aes_gcm_handle_queue()
217 struct aead_request *req = container_of(areq, struct aead_request, in omap_aes_gcm_prepare_req()
238 static int omap_aes_gcm_crypt(struct aead_request *req, unsigned long mode) in omap_aes_gcm_crypt()
272 int omap_aes_gcm_encrypt(struct aead_request *req) in omap_aes_gcm_encrypt()
280 int omap_aes_gcm_decrypt(struct aead_request *req) in omap_aes_gcm_decrypt()
288 int omap_aes_4106gcm_encrypt(struct aead_request *req) in omap_aes_4106gcm_encrypt()
[all …]
Domap-aes.h171 struct aead_request *aead_req;
208 int omap_aes_gcm_encrypt(struct aead_request *req);
209 int omap_aes_gcm_decrypt(struct aead_request *req);
211 int omap_aes_4106gcm_encrypt(struct aead_request *req);
212 int omap_aes_4106gcm_decrypt(struct aead_request *req);
/linux-6.1.9/include/crypto/internal/
Daead.h63 static inline void *aead_request_ctx(struct aead_request *req) in aead_request_ctx()
68 static inline void aead_request_complete(struct aead_request *req, int err) in aead_request_complete()
73 static inline u32 aead_request_flags(struct aead_request *req) in aead_request_flags()
78 static inline struct aead_request *aead_request_cast( in aead_request_cast()
81 return container_of(req, struct aead_request, base); in aead_request_cast()
Dskcipher.h17 struct aead_request;
139 struct aead_request *req, bool atomic);
141 struct aead_request *req, bool atomic);
/linux-6.1.9/drivers/crypto/chelsio/
Dchcr_crypto.h325 typedef struct sk_buff *(*create_wr_t)(struct aead_request *req,
329 void chcr_verify_tag(struct aead_request *req, u8 *input, int *err);
330 int chcr_aead_dma_map(struct device *dev, struct aead_request *req,
332 void chcr_aead_dma_unmap(struct device *dev, struct aead_request *req,
334 void chcr_add_aead_dst_ent(struct aead_request *req,
337 void chcr_add_aead_src_ent(struct aead_request *req, struct ulptx_sgl *ulptx);
352 void chcr_aead_common_exit(struct aead_request *req);
/linux-6.1.9/drivers/crypto/xilinx/
Dzynqmp-aes-gcm.c77 static int zynqmp_aes_aead_cipher(struct aead_request *req) in zynqmp_aes_aead_cipher()
178 struct aead_request *req) in zynqmp_fallback_check()
207 struct aead_request *areq = in zynqmp_handle_aes_req()
208 container_of(req, struct aead_request, base); in zynqmp_handle_aes_req()
212 struct aead_request *subreq = aead_request_ctx(req); in zynqmp_handle_aes_req()
281 static int zynqmp_aes_aead_encrypt(struct aead_request *req) in zynqmp_aes_aead_encrypt()
294 static int zynqmp_aes_aead_decrypt(struct aead_request *req) in zynqmp_aes_aead_decrypt()
334 sizeof(struct aead_request) + in zynqmp_aes_aead_init()
/linux-6.1.9/drivers/crypto/cavium/nitrox/
Dnitrox_aead.c192 struct aead_request *areq = arg; in nitrox_aead_callback()
213 static int nitrox_aes_gcm_enc(struct aead_request *areq) in nitrox_aes_gcm_enc()
247 static int nitrox_aes_gcm_dec(struct aead_request *areq) in nitrox_aes_gcm_dec()
335 sizeof(struct aead_request) + in nitrox_aes_gcm_init()
393 static int nitrox_rfc4106_set_aead_rctx_sglist(struct aead_request *areq) in nitrox_rfc4106_set_aead_rctx_sglist()
426 struct aead_request *areq = arg; in nitrox_rfc4106_callback()
440 static int nitrox_rfc4106_enc(struct aead_request *areq) in nitrox_rfc4106_enc()
472 static int nitrox_rfc4106_dec(struct aead_request *areq) in nitrox_rfc4106_dec()
513 crypto_aead_set_reqsize(aead, sizeof(struct aead_request) + in nitrox_rfc4106_init()
/linux-6.1.9/drivers/crypto/amcc/
Dcrypto4xx_core.h238 int crypto4xx_encrypt_aes_ccm(struct aead_request *req);
239 int crypto4xx_decrypt_aes_ccm(struct aead_request *req);
242 int crypto4xx_encrypt_aes_gcm(struct aead_request *req);
243 int crypto4xx_decrypt_aes_gcm(struct aead_request *req);
Dcrypto4xx_alg.c323 static inline bool crypto4xx_aead_need_fallback(struct aead_request *req, in crypto4xx_aead_need_fallback()
351 static int crypto4xx_aead_fallback(struct aead_request *req, in crypto4xx_aead_fallback()
354 struct aead_request *subreq = aead_request_ctx(req); in crypto4xx_aead_fallback()
441 static int crypto4xx_crypt_aes_ccm(struct aead_request *req, bool decrypt) in crypto4xx_crypt_aes_ccm()
473 int crypto4xx_encrypt_aes_ccm(struct aead_request *req) in crypto4xx_encrypt_aes_ccm()
478 int crypto4xx_decrypt_aes_ccm(struct aead_request *req) in crypto4xx_decrypt_aes_ccm()
587 static inline int crypto4xx_crypt_aes_gcm(struct aead_request *req, in crypto4xx_crypt_aes_gcm()
610 int crypto4xx_encrypt_aes_gcm(struct aead_request *req) in crypto4xx_encrypt_aes_gcm()
615 int crypto4xx_decrypt_aes_gcm(struct aead_request *req) in crypto4xx_decrypt_aes_gcm()
/linux-6.1.9/drivers/crypto/ccree/
Dcc_aead.c210 struct aead_request *areq = (struct aead_request *)cc_req; in cc_aead_complete()
721 static void cc_set_assoc_desc(struct aead_request *areq, unsigned int flow_mode, in cc_set_assoc_desc()
760 static void cc_proc_authen_desc(struct aead_request *areq, in cc_proc_authen_desc()
824 static void cc_proc_cipher_desc(struct aead_request *areq, in cc_proc_cipher_desc()
870 static void cc_proc_digest_desc(struct aead_request *req, in cc_proc_digest_desc()
920 static void cc_set_cipher_desc(struct aead_request *req, in cc_set_cipher_desc()
965 static void cc_proc_cipher(struct aead_request *req, struct cc_hw_desc desc[], in cc_proc_cipher()
988 static void cc_set_hmac_desc(struct aead_request *req, struct cc_hw_desc desc[], in cc_set_hmac_desc()
1021 static void cc_set_xcbc_desc(struct aead_request *req, struct cc_hw_desc desc[], in cc_set_xcbc_desc()
1081 static void cc_proc_header_desc(struct aead_request *req, in cc_proc_header_desc()
[all …]
Dcc_buffer_mgr.h52 int cc_map_aead_request(struct cc_drvdata *drvdata, struct aead_request *req);
54 void cc_unmap_aead_request(struct device *dev, struct aead_request *req);
/linux-6.1.9/drivers/crypto/nx/
Dnx-aes-gcm.c100 struct aead_request *req, in nx_gca()
169 static int gmac(struct aead_request *req, const u8 *iv, unsigned int assoclen) in gmac()
242 static int gcm_empty(struct aead_request *req, const u8 *iv, int enc) in gcm_empty()
307 static int gcm_aes_nx_crypt(struct aead_request *req, int enc, in gcm_aes_nx_crypt()
416 static int gcm_aes_nx_encrypt(struct aead_request *req) in gcm_aes_nx_encrypt()
426 static int gcm_aes_nx_decrypt(struct aead_request *req) in gcm_aes_nx_decrypt()
436 static int gcm4106_aes_nx_encrypt(struct aead_request *req) in gcm4106_aes_nx_encrypt()
453 static int gcm4106_aes_nx_decrypt(struct aead_request *req) in gcm4106_aes_nx_decrypt()
Dnx-aes-ccm.c154 struct aead_request *req, in generate_pat()
326 static int ccm_nx_decrypt(struct aead_request *req, in ccm_nx_decrypt()
404 static int ccm_nx_encrypt(struct aead_request *req, in ccm_nx_encrypt()
477 static int ccm4309_aes_nx_encrypt(struct aead_request *req) in ccm4309_aes_nx_encrypt()
490 static int ccm_aes_nx_encrypt(struct aead_request *req) in ccm_aes_nx_encrypt()
501 static int ccm4309_aes_nx_decrypt(struct aead_request *req) in ccm4309_aes_nx_decrypt()
514 static int ccm_aes_nx_decrypt(struct aead_request *req) in ccm_aes_nx_decrypt()
/linux-6.1.9/drivers/crypto/keembay/
Dkeembay-ocs-aes-core.c597 static int kmb_ocs_aead_validate_input(struct aead_request *req, in kmb_ocs_aead_validate_input()
638 static int kmb_ocs_aead_common(struct aead_request *req, in kmb_ocs_aead_common()
649 struct aead_request *subreq = aead_request_ctx(req); in kmb_ocs_aead_common()
685 static void kmb_ocs_aead_dma_cleanup(struct aead_request *req) in kmb_ocs_aead_dma_cleanup()
722 static int kmb_ocs_aead_dma_prepare(struct aead_request *req, u32 *src_dll_size) in kmb_ocs_aead_dma_prepare()
890 static int kmb_ocs_aead_run(struct aead_request *req) in kmb_ocs_aead_run()
978 struct aead_request *req = container_of(areq, in kmb_ocs_aes_aead_do_one_request()
979 struct aead_request, base); in kmb_ocs_aes_aead_do_one_request()
1055 static int kmb_ocs_aes_gcm_encrypt(struct aead_request *req) in kmb_ocs_aes_gcm_encrypt()
1060 static int kmb_ocs_aes_gcm_decrypt(struct aead_request *req) in kmb_ocs_aes_gcm_decrypt()
[all …]
/linux-6.1.9/net/tls/
Dtls_device_fallback.c50 static int tls_enc_record(struct aead_request *aead_req, in tls_enc_record()
132 static void tls_init_aead_request(struct aead_request *aead_req, in tls_init_aead_request()
139 static struct aead_request *tls_alloc_aead_request(struct crypto_aead *aead, in tls_alloc_aead_request()
142 unsigned int req_size = sizeof(struct aead_request) + in tls_alloc_aead_request()
144 struct aead_request *aead_req; in tls_alloc_aead_request()
152 static int tls_enc_records(struct aead_request *aead_req, in tls_enc_records()
333 struct aead_request *aead_req; in tls_enc_skb()
/linux-6.1.9/arch/x86/crypto/
Daegis128-aesni-glue.c61 struct aead_request *req, bool atomic);
165 static void crypto_aegis128_aesni_crypt(struct aead_request *req, in crypto_aegis128_aesni_crypt()
187 static int crypto_aegis128_aesni_encrypt(struct aead_request *req) in crypto_aegis128_aesni_encrypt()
207 static int crypto_aegis128_aesni_decrypt(struct aead_request *req) in crypto_aegis128_aesni_decrypt()

1234