| /linux/include/crypto/ |
| H A D | aead.h | 90 struct aead_request { struct 143 int (*encrypt)(struct aead_request *req); 144 int (*decrypt)(struct aead_request *req); 169 char __##name##_desc[sizeof(struct aead_request) + \ 172 struct aead_request *name = \ 173 (((struct aead_request *)__##name##_desc)->base.tfm = \ 408 static inline struct crypto_aead *crypto_aead_reqtfm(struct aead_request *req) in crypto_aead_reqtfm() 413 static inline struct crypto_sync_aead *crypto_sync_aead_reqtfm(struct aead_request *req) in crypto_sync_aead_reqtfm() 439 int crypto_aead_encrypt(struct aead_request *req); 463 int crypto_aead_decrypt(struct aead_request *req); [all …]
|
| /linux/crypto/ |
| H A D | gcm.c | 39 struct aead_request subreq; 52 struct aead_request subreq; 58 int (*complete)(struct aead_request *req, u32 flags); 81 struct aead_request *req) in crypto_gcm_reqctx() 148 static void crypto_gcm_init_common(struct aead_request *req) in crypto_gcm_init_common() 173 static void crypto_gcm_init_crypt(struct aead_request *req, in crypto_gcm_init_crypt() 198 static int gcm_hash_update(struct aead_request *req, in gcm_hash_update() 212 static int gcm_hash_remain(struct aead_request *req, in gcm_hash_remain() 219 static int gcm_hash_len(struct aead_request *req, u32 flags) in gcm_hash_len() 237 static int gcm_hash_len_continue(struct aead_request *req, u32 flags) in gcm_hash_len_continue() [all …]
|
| H 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() 41 struct aead_request *req = data; in seqiv_aead_encrypt_complete() 47 static int seqiv_aead_encrypt(struct aead_request *req) in seqiv_aead_encrypt() 51 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_encrypt() 99 static int seqiv_aead_decrypt(struct aead_request *req) in seqiv_aead_decrypt() 103 struct aead_request *subreq = aead_request_ctx(req); in seqiv_aead_decrypt()
|
| H A D | krb5enc.c | 42 static void krb5enc_request_complete(struct aead_request *req, int err) in krb5enc_request_complete() 128 struct aead_request *req = data; in krb5enc_encrypt_done() 137 static int krb5enc_dispatch_encrypt(struct aead_request *req, in krb5enc_dispatch_encrypt() 168 static void krb5enc_insert_checksum(struct aead_request *req, u8 *hash) in krb5enc_insert_checksum() 183 struct aead_request *req = data; in krb5enc_encrypt_ahash_done() 205 static int krb5enc_dispatch_encrypt_hash(struct aead_request *req) in krb5enc_dispatch_encrypt_hash() 234 static int krb5enc_encrypt(struct aead_request *req) in krb5enc_encrypt() 245 static int krb5enc_verify_hash(struct aead_request *req) in krb5enc_verify_hash() 265 struct aead_request *req = data; in krb5enc_decrypt_hash_done() 277 static int krb5enc_dispatch_decrypt_hash(struct aead_request *req) in krb5enc_dispatch_decrypt_hash() [all …]
|
| H A D | pcrypt.c | 61 struct aead_request *req = pcrypt_request_ctx(preq); in pcrypt_aead_serial() 68 struct aead_request *req = 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() 131 struct aead_request *req = pcrypt_request_ctx(preq); in pcrypt_aead_dec() 143 static int pcrypt_aead_decrypt(struct aead_request *req) in pcrypt_aead_decrypt() 147 struct aead_request *creq = pcrypt_request_ctx(preq); in pcrypt_aead_decrypt() 198 sizeof(struct aead_request) + in pcrypt_aead_init_tfm()
|
| H A D | authenc.c | 38 static void authenc_request_complete(struct aead_request *req, int err) in authenc_request_complete() 110 static void authenc_geniv_ahash_finish(struct aead_request *req) in authenc_geniv_ahash_finish() 125 struct aead_request *req = data; in authenc_geniv_ahash_done() 138 struct aead_request *req = data; in authenc_geniv_ahash_done2() 145 static int crypto_authenc_genicv(struct aead_request *req, unsigned int mask) in crypto_authenc_genicv() 177 struct aead_request *areq = data; in crypto_authenc_encrypt_done() 187 static int crypto_authenc_encrypt(struct aead_request *req) in crypto_authenc_encrypt() 223 struct aead_request *req = data; in authenc_decrypt_tail_done() 228 static int crypto_authenc_decrypt_tail(struct aead_request *req, in crypto_authenc_decrypt_tail() 268 struct aead_request *req = data; in authenc_verify_ahash_done() [all …]
|
| H A D | chacha20poly1305.c | 56 static inline void async_done_continue(struct aead_request *req, int err, in async_done_continue() 57 int (*cont)(struct aead_request *)) in async_done_continue() argument 70 static void chacha_iv(u8 *iv, struct aead_request *req, u32 icb) in chacha_iv() 81 static int poly_verify_tag(struct aead_request *req) in poly_verify_tag() 99 static int chacha_decrypt(struct aead_request *req) in chacha_decrypt() 130 static int poly_hash(struct aead_request *req) in poly_hash() 202 static int poly_genkey(struct aead_request *req) in poly_genkey() 241 static int chacha_encrypt(struct aead_request *req) in chacha_encrypt() 272 static int chachapoly_encrypt(struct aead_request *req) in chachapoly_encrypt() 287 static int chachapoly_decrypt(struct aead_request *req) in chachapoly_decrypt()
|
| H A D | authencesn.c | 41 static void authenc_esn_request_complete(struct aead_request *req, int err) in authenc_esn_request_complete() 84 static int crypto_authenc_esn_genicv_tail(struct aead_request *req, in crypto_authenc_esn_genicv_tail() 107 struct aead_request *req = data; in authenc_esn_geniv_ahash_done() 113 static int crypto_authenc_esn_genicv(struct aead_request *req, in crypto_authenc_esn_genicv() 151 struct aead_request *areq = data; in crypto_authenc_esn_encrypt_done() 159 static int crypto_authenc_esn_encrypt(struct aead_request *req) in crypto_authenc_esn_encrypt() 197 static int crypto_authenc_esn_decrypt_tail(struct aead_request *req, in crypto_authenc_esn_decrypt_tail() 245 struct aead_request *req = data; in authenc_esn_verify_ahash_done() 251 static int crypto_authenc_esn_decrypt(struct aead_request *req) in crypto_authenc_esn_decrypt()
|
| H 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() 73 static int echainiv_decrypt(struct aead_request *req) in echainiv_decrypt() 77 struct aead_request *subreq = aead_request_ctx(req); in echainiv_decrypt()
|
| H A D | ccm.c | 38 struct aead_request subreq; 59 struct aead_request *req) in crypto_ccm_reqctx() 124 static int format_input(u8 *info, struct aead_request *req, in format_input() 165 static int crypto_ccm_auth(struct aead_request *req, struct scatterlist *plain, in crypto_ccm_auth() 226 struct aead_request *req = data; in crypto_ccm_encrypt_done() 247 static int crypto_ccm_init_crypt(struct aead_request *req, u8 *tag) in crypto_ccm_init_crypt() 282 static int crypto_ccm_encrypt(struct aead_request *req) in crypto_ccm_encrypt() 322 struct aead_request *req = data; in crypto_ccm_decrypt_done() 341 static int crypto_ccm_decrypt(struct aead_request *req) in crypto_ccm_decrypt() 598 static struct aead_request *crypto_rfc4309_crypt(struct aead_request *req) in crypto_rfc4309_crypt() [all …]
|
| /linux/drivers/crypto/ |
| H A D | omap-aes-gcm.c | 30 struct aead_request *req); 34 struct aead_request *req = dd->aead_req; in omap_aes_gcm_finish_req() 91 struct aead_request *req) in omap_aes_gcm_copy_buffers() 176 static int do_encrypt_iv(struct aead_request *req, u32 *tag, u32 *iv) in do_encrypt_iv() 209 struct aead_request *req) in omap_aes_gcm_handle_queue() 217 static int omap_aes_gcm_prepare_req(struct aead_request *req, 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 …]
|
| H A D | omap-aes.h | 167 struct aead_request *aead_req; 204 int omap_aes_gcm_encrypt(struct aead_request *req); 205 int omap_aes_gcm_decrypt(struct aead_request *req); 207 int omap_aes_4106gcm_encrypt(struct aead_request *req); 208 int omap_aes_4106gcm_decrypt(struct aead_request *req);
|
| /linux/include/crypto/internal/ |
| H A D | aead.h | 68 static inline void *aead_request_ctx(struct aead_request *req) in aead_request_ctx() 73 static inline void *aead_request_ctx_dma(struct aead_request *req) in aead_request_ctx_dma() 83 static inline void aead_request_complete(struct aead_request *req, int err) in aead_request_complete() 88 static inline u32 aead_request_flags(struct aead_request *req) in aead_request_flags() 93 static inline struct aead_request *aead_request_cast( in aead_request_cast() 96 return container_of(req, struct aead_request, base); in aead_request_cast()
|
| /linux/drivers/crypto/chelsio/ |
| H A D | chcr_crypto.h | 324 typedef struct sk_buff *(*create_wr_t)(struct aead_request *req, 328 void chcr_verify_tag(struct aead_request *req, u8 *input, int *err); 329 int chcr_aead_dma_map(struct device *dev, struct aead_request *req, 331 void chcr_aead_dma_unmap(struct device *dev, struct aead_request *req, 333 void chcr_add_aead_dst_ent(struct aead_request *req, 336 void chcr_add_aead_src_ent(struct aead_request *req, struct ulptx_sgl *ulptx); 350 void chcr_aead_common_exit(struct aead_request *req);
|
| /linux/drivers/crypto/xilinx/ |
| H A D | zynqmp-aes-gcm.c | 55 int (*aes_aead_cipher)(struct aead_request *areq); 138 static int zynqmp_aes_aead_cipher(struct aead_request *req) in zynqmp_aes_aead_cipher() 242 static int versal_aes_aead_cipher(struct aead_request *req) in versal_aes_aead_cipher() 378 struct aead_request *req) in zynqmp_fallback_check() 403 struct aead_request *req) in versal_fallback_check() 427 struct aead_request *areq = in xilinx_handle_aes_req() 428 container_of(req, struct aead_request, base); in xilinx_handle_aes_req() 583 static int xilinx_aes_fallback_crypt(struct aead_request *req, bool encrypt) in xilinx_aes_fallback_crypt() 585 struct aead_request *subreq = aead_request_ctx(req); in xilinx_aes_fallback_crypt() 598 static int zynqmp_aes_aead_encrypt(struct aead_request *req) in zynqmp_aes_aead_encrypt() [all …]
|
| /linux/drivers/crypto/ccree/ |
| H A D | cc_aead.c | 210 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 …]
|
| /linux/drivers/crypto/cavium/nitrox/ |
| H 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_dma(aead, sizeof(struct aead_request) + in nitrox_rfc4106_init()
|
| /linux/drivers/crypto/amcc/ |
| H A D | crypto4xx_core.h | 232 int crypto4xx_encrypt_aes_ccm(struct aead_request *req); 233 int crypto4xx_decrypt_aes_ccm(struct aead_request *req); 236 int crypto4xx_encrypt_aes_gcm(struct aead_request *req); 237 int crypto4xx_decrypt_aes_gcm(struct aead_request *req);
|
| H A D | crypto4xx_alg.c | 306 static inline bool crypto4xx_aead_need_fallback(struct aead_request *req, in crypto4xx_aead_need_fallback() 334 static int crypto4xx_aead_fallback(struct aead_request *req, in crypto4xx_aead_fallback() 337 struct aead_request *subreq = aead_request_ctx(req); in crypto4xx_aead_fallback() 424 static int crypto4xx_crypt_aes_ccm(struct aead_request *req, bool decrypt) in crypto4xx_crypt_aes_ccm() 456 int crypto4xx_encrypt_aes_ccm(struct aead_request *req) in crypto4xx_encrypt_aes_ccm() 461 int crypto4xx_decrypt_aes_ccm(struct aead_request *req) in crypto4xx_decrypt_aes_ccm() 570 static inline int crypto4xx_crypt_aes_gcm(struct aead_request *req, in crypto4xx_crypt_aes_gcm() 593 int crypto4xx_encrypt_aes_gcm(struct aead_request *req) in crypto4xx_encrypt_aes_gcm() 598 int crypto4xx_decrypt_aes_gcm(struct aead_request *req) in crypto4xx_decrypt_aes_gcm()
|
| /linux/drivers/crypto/nx/ |
| H A D | nx-aes-gcm.c | 100 struct aead_request *req, in nx_gca() 166 static int gmac(struct aead_request *req, const u8 *iv, unsigned int assoclen) in gmac() 239 static int gcm_empty(struct aead_request *req, const u8 *iv, int enc) in gcm_empty() 304 static int gcm_aes_nx_crypt(struct aead_request *req, int enc, in gcm_aes_nx_crypt() 411 static int gcm_aes_nx_encrypt(struct aead_request *req) in gcm_aes_nx_encrypt() 421 static int gcm_aes_nx_decrypt(struct aead_request *req) in gcm_aes_nx_decrypt() 431 static int gcm4106_aes_nx_encrypt(struct aead_request *req) in gcm4106_aes_nx_encrypt() 448 static int gcm4106_aes_nx_decrypt(struct aead_request *req) in gcm4106_aes_nx_decrypt()
|
| H A D | nx-aes-ccm.c | 154 struct aead_request *req, in generate_pat() 324 static int ccm_nx_decrypt(struct aead_request *req, in ccm_nx_decrypt() 401 static int ccm_nx_encrypt(struct aead_request *req, in ccm_nx_encrypt() 473 static int ccm4309_aes_nx_encrypt(struct aead_request *req) in ccm4309_aes_nx_encrypt() 486 static int ccm_aes_nx_encrypt(struct aead_request *req) in ccm_aes_nx_encrypt() 497 static int ccm4309_aes_nx_decrypt(struct aead_request *req) in ccm4309_aes_nx_decrypt() 510 static int ccm_aes_nx_decrypt(struct aead_request *req) in ccm_aes_nx_decrypt()
|
| /linux/arch/arm64/crypto/ |
| H A D | sm4-ce-ccm-glue.c | 52 static int ccm_format_input(u8 info[], struct aead_request *req, in ccm_format_input() 90 static void ccm_calculate_auth_mac(struct aead_request *req, u8 mac[]) in ccm_calculate_auth_mac() 156 static int ccm_crypt(struct aead_request *req, struct skcipher_walk *walk, in ccm_crypt() 191 static int ccm_encrypt(struct aead_request *req) in ccm_encrypt() 218 static int ccm_decrypt(struct aead_request *req) in ccm_decrypt()
|
| /linux/net/tls/ |
| H A D | tls_device_fallback.c | 40 static int tls_enc_record(struct aead_request *aead_req, in tls_enc_record() 111 static void tls_init_aead_request(struct aead_request *aead_req, in tls_init_aead_request() 118 static struct aead_request *tls_alloc_aead_request(struct crypto_aead *aead, in tls_alloc_aead_request() 121 unsigned int req_size = sizeof(struct aead_request) + in tls_alloc_aead_request() 123 struct aead_request *aead_req; in tls_alloc_aead_request() 131 static int tls_enc_records(struct aead_request *aead_req, in tls_enc_records() 309 struct aead_request *aead_req; in tls_enc_skb()
|
| /linux/drivers/crypto/intel/keembay/ |
| H A D | keembay-ocs-aes-core.c | 594 static int kmb_ocs_aead_validate_input(struct aead_request *req, in kmb_ocs_aead_validate_input() 635 static int kmb_ocs_aead_common(struct aead_request *req, in kmb_ocs_aead_common() 646 struct aead_request *subreq = aead_request_ctx(req); in kmb_ocs_aead_common() 682 static void kmb_ocs_aead_dma_cleanup(struct aead_request *req) in kmb_ocs_aead_dma_cleanup() 719 static int kmb_ocs_aead_dma_prepare(struct aead_request *req, u32 *src_dll_size) in kmb_ocs_aead_dma_prepare() 887 static int kmb_ocs_aead_run(struct aead_request *req) in kmb_ocs_aead_run() 975 struct aead_request *req = container_of(areq, in kmb_ocs_aes_aead_do_one_request() 976 struct aead_request, base); in kmb_ocs_aes_aead_do_one_request() 1052 static int kmb_ocs_aes_gcm_encrypt(struct aead_request *req) in kmb_ocs_aes_gcm_encrypt() 1057 static int kmb_ocs_aes_gcm_decrypt(struct aead_request *req) in kmb_ocs_aes_gcm_decrypt() [all …]
|
| /linux/drivers/crypto/qce/ |
| H 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 …]
|