/linux/include/crypto/ |
A D | aead.h | 87 struct aead_request { struct 140 int (*encrypt)(struct aead_request *req); 141 int (*decrypt)(struct aead_request *req); 343 int crypto_aead_encrypt(struct aead_request *req); 367 int crypto_aead_decrypt(struct aead_request *req); 399 static inline void aead_request_set_tfm(struct aead_request *req, in aead_request_set_tfm() 419 struct aead_request *req; in aead_request_alloc() 433 static inline void aead_request_free(struct aead_request *req) in aead_request_free() 463 static inline void aead_request_set_callback(struct aead_request *req, in aead_request_set_callback() 503 static inline void aead_request_set_crypt(struct aead_request *req, in aead_request_set_crypt() [all …]
|
/linux/include/crypto/internal/ |
A D | aead.h | 63 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() 118 struct aead_request *request) in aead_enqueue_request() 123 static inline struct aead_request *aead_dequeue_request( in aead_dequeue_request() 130 return req ? container_of(req, struct aead_request, base) : NULL; in aead_dequeue_request() 133 static inline struct aead_request *aead_get_backlog(struct aead_queue *queue) in aead_get_backlog() 139 return req ? container_of(req, struct aead_request, base) : NULL; in aead_get_backlog()
|
A D | skcipher.h | 17 struct aead_request; 139 struct aead_request *req, bool atomic); 141 struct aead_request *req, bool atomic);
|
/linux/crypto/ |
A D | gcm.c | 40 struct aead_request subreq; 54 struct aead_request subreq; 85 struct aead_request *req) in crypto_gcm_reqctx() 251 struct aead_request *req = areq->data; in gcm_hash_len_done() 273 struct aead_request *req = areq->data; in gcm_hash_crypt_remain_done() 303 struct aead_request *req = areq->data; in gcm_hash_crypt_done() 332 struct aead_request *req = areq->data; in gcm_hash_assoc_remain_done() 360 struct aead_request *req = areq->data; in gcm_hash_assoc_done() 385 struct aead_request *req = areq->data; in gcm_hash_init_done() 438 struct aead_request *req = areq->data; in gcm_encrypt_done() [all …]
|
A D | seqiv.c | 21 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()
|
A D | chacha20poly1305.c | 71 int (*cont)(struct aead_request *)) in async_done_continue() argument 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() 169 static int poly_tail(struct aead_request *req) in poly_tail() 228 static int poly_cipher(struct aead_request *req) in poly_cipher() 258 static int poly_adpad(struct aead_request *req) in poly_adpad() 287 static int poly_ad(struct aead_request *req) in poly_ad() 311 static int poly_setkey(struct aead_request *req) in poly_setkey() 337 static int poly_init(struct aead_request *req) in poly_init() [all …]
|
A D | pcrypt.c | 61 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()
|
A D | authencesn.c | 43 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()
|
A D | authenc.c | 40 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()
|
A D | ccm.c | 37 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() 229 struct aead_request *req = areq->data; in crypto_ccm_encrypt_done() 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() 607 struct aead_request *subreq = &rctx->subreq; in crypto_rfc4309_crypt() 648 static int crypto_rfc4309_encrypt(struct aead_request *req) in crypto_rfc4309_encrypt() [all …]
|
A D | echainiv.c | 26 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()
|
/linux/drivers/crypto/ |
A D | omap-aes-gcm.c | 27 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() 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() 300 int omap_aes_4106gcm_decrypt(struct aead_request *req) in omap_aes_4106gcm_decrypt() [all …]
|
A D | omap-aes.h | 171 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/drivers/crypto/chelsio/ |
A D | chcr_crypto.h | 325 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/drivers/crypto/xilinx/ |
A D | zynqmp-aes-gcm.c | 77 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/drivers/crypto/ccree/ |
A D | cc_aead.c | 210 struct aead_request *areq = (struct aead_request *)cc_req; in cc_aead_complete() 920 static void cc_set_cipher_desc(struct aead_request *req, in cc_set_cipher_desc() 1158 static void cc_mlli_to_sram(struct aead_request *req, in cc_mlli_to_sram() 1313 struct aead_request *req) in validate_data_size() 1531 static int config_ccm_adata(struct aead_request *req) in config_ccm_adata() 1613 static void cc_set_ghash_desc(struct aead_request *req, in cc_set_ghash_desc() 1829 static int config_gcm_context(struct aead_request *req) in config_gcm_context() 1878 static void cc_proc_rfc4_gcm(struct aead_request *req) in cc_proc_rfc4_gcm() 1891 static int cc_proc_aead(struct aead_request *req, in cc_proc_aead() 2020 static int cc_aead_encrypt(struct aead_request *req) in cc_aead_encrypt() [all …]
|
/linux/net/tls/ |
A D | tls_device_fallback.c | 48 static int tls_enc_record(struct aead_request *aead_req, in tls_enc_record() 120 static void tls_init_aead_request(struct aead_request *aead_req, in tls_init_aead_request() 127 static struct aead_request *tls_alloc_aead_request(struct crypto_aead *aead, in tls_alloc_aead_request() 130 unsigned int req_size = sizeof(struct aead_request) + in tls_alloc_aead_request() 132 struct aead_request *aead_req; in tls_alloc_aead_request() 140 static int tls_enc_records(struct aead_request *aead_req, in tls_enc_records() 317 struct aead_request *aead_req; in tls_enc_skb()
|
/linux/drivers/crypto/cavium/nitrox/ |
A D | nitrox_aead.c | 192 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/drivers/crypto/nx/ |
A D | nx-aes-gcm.c | 100 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()
|
A D | nx-aes-ccm.c | 157 struct aead_request *req, in generate_pat() 329 static int ccm_nx_decrypt(struct aead_request *req, in ccm_nx_decrypt() 407 static int ccm_nx_encrypt(struct aead_request *req, in ccm_nx_encrypt() 480 static int ccm4309_aes_nx_encrypt(struct aead_request *req) in ccm4309_aes_nx_encrypt() 493 static int ccm_aes_nx_encrypt(struct aead_request *req) in ccm_aes_nx_encrypt() 504 static int ccm4309_aes_nx_decrypt(struct aead_request *req) in ccm4309_aes_nx_decrypt() 517 static int ccm_aes_nx_decrypt(struct aead_request *req) in ccm_aes_nx_decrypt()
|
/linux/drivers/crypto/amcc/ |
A D | crypto4xx_core.h | 238 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);
|
A D | crypto4xx_alg.c | 323 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/drivers/crypto/keembay/ |
A D | keembay-ocs-aes-core.c | 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() 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() 1065 static int kmb_ocs_aes_ccm_encrypt(struct aead_request *req) in kmb_ocs_aes_ccm_encrypt() 1070 static int kmb_ocs_aes_ccm_decrypt(struct aead_request *req) in kmb_ocs_aes_ccm_decrypt() 1131 static int kmb_ocs_sm4_gcm_encrypt(struct aead_request *req) in kmb_ocs_sm4_gcm_encrypt() [all …]
|
/linux/drivers/crypto/qce/ |
A D | aead.c | 26 struct aead_request *req = aead_request_cast(async_req); in qce_aead_done() 93 qce_aead_prepare_result_buf(struct sg_table *tbl, struct aead_request *req) in qce_aead_prepare_result_buf() 104 qce_aead_prepare_ccm_result_buf(struct sg_table *tbl, struct aead_request *req) in qce_aead_prepare_ccm_result_buf() 113 qce_aead_prepare_dst_buf(struct aead_request *req) in qce_aead_prepare_dst_buf() 185 qce_aead_ccm_prepare_buf_assoclen(struct aead_request *req) in qce_aead_ccm_prepare_buf_assoclen() 301 static int qce_aead_prepare_buf(struct aead_request *req) in qce_aead_prepare_buf() 329 static int qce_aead_ccm_prepare_buf(struct aead_request *req) in qce_aead_ccm_prepare_buf() 410 struct aead_request *req = aead_request_cast(async_req); in qce_aead_async_req_handle() 502 static int qce_aead_crypt(struct aead_request *req, int encrypt) in qce_aead_crypt() 555 static int qce_aead_encrypt(struct aead_request *req) in qce_aead_encrypt() [all …]
|
/linux/arch/x86/crypto/ |
A D | aegis128-aesni-glue.c | 61 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()
|