Home
last modified time | relevance | path

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

/linux-4.1.27/crypto/
Dgcm.c57 struct aead_request subreq;
63 void (*complete)(struct aead_request *req, int err);
86 struct aead_request *req) in crypto_gcm_reqctx()
190 struct aead_request *req, in crypto_gcm_init_crypt()
229 static int gcm_hash_update(struct aead_request *req, in gcm_hash_update()
244 static int gcm_hash_remain(struct aead_request *req, in gcm_hash_remain()
259 static int gcm_hash_len(struct aead_request *req, in gcm_hash_len()
278 static int gcm_hash_final(struct aead_request *req, in gcm_hash_final()
290 static void __gcm_hash_final_done(struct aead_request *req, int err) in __gcm_hash_final_done()
303 struct aead_request *req = areq->data; in gcm_hash_final_done()
[all …]
Dauthenc.c26 typedef u8 *(*authenc_ahash_t)(struct aead_request *req, unsigned int flags);
49 static void authenc_request_complete(struct aead_request *req, int err) in authenc_request_complete()
125 struct aead_request *req = areq->data; in authenc_geniv_ahash_update_done()
154 struct aead_request *req = areq->data; in authenc_geniv_ahash_done()
177 struct aead_request *req = areq->data; in authenc_verify_ahash_update_done()
226 struct aead_request *req = areq->data; in authenc_verify_ahash_done()
259 static u8 *crypto_authenc_ahash_fb(struct aead_request *req, unsigned int flags) in crypto_authenc_ahash_fb()
298 static u8 *crypto_authenc_ahash(struct aead_request *req, unsigned int flags) in crypto_authenc_ahash()
324 static int crypto_authenc_genicv(struct aead_request *req, u8 *iv, in crypto_authenc_genicv()
378 struct aead_request *areq = req->data; in crypto_authenc_encrypt_done()
[all …]
Dauthencesn.c53 static void authenc_esn_request_complete(struct aead_request *req, int err) in authenc_esn_request_complete()
99 struct aead_request *req = areq->data; in authenc_esn_geniv_ahash_update_done()
139 struct aead_request *req = areq->data; in authenc_esn_geniv_ahash_update_done2()
170 struct aead_request *req = areq->data; in authenc_esn_geniv_ahash_done()
194 struct aead_request *req = areq->data; in authenc_esn_verify_ahash_update_done()
255 struct aead_request *req = areq->data; in authenc_esn_verify_ahash_update_done2()
305 struct aead_request *req = areq->data; in authenc_esn_verify_ahash_done()
338 static u8 *crypto_authenc_esn_ahash(struct aead_request *req, in crypto_authenc_esn_ahash()
386 static int crypto_authenc_esn_genicv(struct aead_request *req, u8 *iv, in crypto_authenc_esn_genicv()
455 struct aead_request *areq = req->data; in crypto_authenc_esn_encrypt_done()
[all …]
Dpcrypt.c120 struct aead_request *req = pcrypt_request_ctx(preq); in pcrypt_aead_serial()
135 struct aead_request *req = areq->data; in pcrypt_aead_done()
148 struct aead_request *req = pcrypt_request_ctx(preq); in pcrypt_aead_enc()
158 static int pcrypt_aead_encrypt(struct aead_request *req) in pcrypt_aead_encrypt()
162 struct aead_request *creq = pcrypt_request_ctx(preq); in pcrypt_aead_encrypt()
190 struct aead_request *req = pcrypt_request_ctx(preq); in pcrypt_aead_dec()
200 static int pcrypt_aead_decrypt(struct aead_request *req) in pcrypt_aead_decrypt()
204 struct aead_request *creq = pcrypt_request_ctx(preq); in pcrypt_aead_decrypt()
245 struct aead_request *areq = &req->areq; in pcrypt_aead_givencrypt()
Dccm.c51 struct aead_request *req) in crypto_ccm_reqctx()
123 static int format_input(u8 *info, struct aead_request *req, in format_input()
245 static int crypto_ccm_auth(struct aead_request *req, struct scatterlist *plain, in crypto_ccm_auth()
283 struct aead_request *req = areq->data; in crypto_ccm_encrypt_done()
303 static int crypto_ccm_encrypt(struct aead_request *req) in crypto_ccm_encrypt()
359 struct aead_request *req = areq->data; in crypto_ccm_decrypt_done()
373 static int crypto_ccm_decrypt(struct aead_request *req) in crypto_ccm_decrypt()
678 static struct aead_request *crypto_rfc4309_crypt(struct aead_request *req) in crypto_rfc4309_crypt()
680 struct aead_request *subreq = aead_request_ctx(req); in crypto_rfc4309_crypt()
702 static int crypto_rfc4309_encrypt(struct aead_request *req) in crypto_rfc4309_encrypt()
[all …]
Dseqiv.c60 struct aead_request *subreq = aead_givcrypt_reqctx(req); in seqiv_aead_complete2()
147 struct aead_request *areq = &req->areq; in seqiv_aead_givencrypt()
148 struct aead_request *subreq = aead_givcrypt_reqctx(req); in seqiv_aead_givencrypt()
254 tfm->crt_aead.reqsize = sizeof(struct aead_request); in seqiv_aead_init()
Dcryptd.c657 static void cryptd_aead_crypt(struct aead_request *req, in cryptd_aead_crypt()
660 int (*crypt)(struct aead_request *req)) in cryptd_aead_crypt()
680 struct aead_request *req; in cryptd_aead_encrypt()
682 req = container_of(areq, struct aead_request, base); in cryptd_aead_encrypt()
690 struct aead_request *req; in cryptd_aead_decrypt()
692 req = container_of(areq, struct aead_request, base); in cryptd_aead_decrypt()
696 static int cryptd_aead_enqueue(struct aead_request *req, in cryptd_aead_enqueue()
708 static int cryptd_aead_encrypt_enqueue(struct aead_request *req) in cryptd_aead_encrypt_enqueue()
713 static int cryptd_aead_decrypt_enqueue(struct aead_request *req) in cryptd_aead_decrypt_enqueue()
Dtcrypt.c145 static int test_aead_jiffies(struct aead_request *req, int enc, in test_aead_jiffies()
168 static int test_aead_cycles(struct aead_request *req, int enc, int blen) in test_aead_cycles()
277 struct aead_request *req; in test_aead_speed()
Dalgif_aead.c53 struct aead_request aead_req;
Dtestmgr.c426 struct aead_request *req; in __test_aead()
/linux-4.1.27/net/mac80211/
Daes_gcm.c24 char aead_req_data[sizeof(struct aead_request) + in ieee80211_aes_gcm_encrypt()
26 __aligned(__alignof__(struct aead_request)); in ieee80211_aes_gcm_encrypt()
27 struct aead_request *aead_req = (void *)aead_req_data; in ieee80211_aes_gcm_encrypt()
48 char aead_req_data[sizeof(struct aead_request) + in ieee80211_aes_gcm_decrypt()
50 __aligned(__alignof__(struct aead_request)); in ieee80211_aes_gcm_decrypt()
51 struct aead_request *aead_req = (void *)aead_req_data; in ieee80211_aes_gcm_decrypt()
Daes_ccm.c28 char aead_req_data[sizeof(struct aead_request) + in ieee80211_aes_ccm_encrypt()
30 __aligned(__alignof__(struct aead_request)); in ieee80211_aes_ccm_encrypt()
31 struct aead_request *aead_req = (void *) aead_req_data; in ieee80211_aes_ccm_encrypt()
53 char aead_req_data[sizeof(struct aead_request) + in ieee80211_aes_ccm_decrypt()
55 __aligned(__alignof__(struct aead_request)); in ieee80211_aes_ccm_decrypt()
56 struct aead_request *aead_req = (void *) aead_req_data; in ieee80211_aes_ccm_decrypt()
Daes_gmac.c28 char aead_req_data[sizeof(struct aead_request) + in ieee80211_aes_gmac()
30 __aligned(__alignof__(struct aead_request)); in ieee80211_aes_gmac()
31 struct aead_request *aead_req = (void *)aead_req_data; in ieee80211_aes_gmac()
/linux-4.1.27/include/linux/
Dcrypto.h189 struct aead_request { struct
326 int (*encrypt)(struct aead_request *req);
327 int (*decrypt)(struct aead_request *req);
608 int (*encrypt)(struct aead_request *req);
609 int (*decrypt)(struct aead_request *req);
1368 static inline struct crypto_aead *crypto_aead_reqtfm(struct aead_request *req) in crypto_aead_reqtfm()
1392 static inline int crypto_aead_encrypt(struct aead_request *req) in crypto_aead_encrypt()
1419 static inline int crypto_aead_decrypt(struct aead_request *req) in crypto_aead_decrypt()
1457 static inline void aead_request_set_tfm(struct aead_request *req, in aead_request_set_tfm()
1475 static inline struct aead_request *aead_request_alloc(struct crypto_aead *tfm, in aead_request_alloc()
[all …]
/linux-4.1.27/drivers/crypto/nx/
Dnx-aes-gcm.c125 struct aead_request *req, in nx_gca()
193 static int gmac(struct aead_request *req, struct blkcipher_desc *desc) in gmac()
265 static int gcm_empty(struct aead_request *req, struct blkcipher_desc *desc, in gcm_empty()
330 static int gcm_aes_nx_crypt(struct aead_request *req, int enc) in gcm_aes_nx_crypt()
436 static int gcm_aes_nx_encrypt(struct aead_request *req) in gcm_aes_nx_encrypt()
446 static int gcm_aes_nx_decrypt(struct aead_request *req) in gcm_aes_nx_decrypt()
456 static int gcm4106_aes_nx_encrypt(struct aead_request *req) in gcm4106_aes_nx_encrypt()
469 static int gcm4106_aes_nx_decrypt(struct aead_request *req) in gcm4106_aes_nx_decrypt()
Dnx-aes-ccm.c173 struct aead_request *req, in generate_pat()
345 static int ccm_nx_decrypt(struct aead_request *req, in ccm_nx_decrypt()
422 static int ccm_nx_encrypt(struct aead_request *req, in ccm_nx_encrypt()
494 static int ccm4309_aes_nx_encrypt(struct aead_request *req) in ccm4309_aes_nx_encrypt()
511 static int ccm_aes_nx_encrypt(struct aead_request *req) in ccm_aes_nx_encrypt()
526 static int ccm4309_aes_nx_decrypt(struct aead_request *req) in ccm4309_aes_nx_decrypt()
543 static int ccm_aes_nx_decrypt(struct aead_request *req) in ccm_aes_nx_decrypt()
/linux-4.1.27/arch/arm64/crypto/
Daes-ce-ccm-glue.c68 static int ccm_init_mac(struct aead_request *req, u8 maciv[], u32 msglen) in ccm_init_mac()
106 static void ccm_calculate_auth_mac(struct aead_request *req, u8 mac[]) in ccm_calculate_auth_mac()
148 static int ccm_encrypt(struct aead_request *req) in ccm_encrypt()
203 static int ccm_decrypt(struct aead_request *req) in ccm_decrypt()
/linux-4.1.27/drivers/crypto/qat/qat_common/
Dqat_crypto.h87 struct aead_request *aead_req;
Dqat_algs.c803 struct aead_request *areq = qat_req->aead_req; in qat_aead_alg_callback()
837 static int qat_alg_aead_dec(struct aead_request *areq) in qat_alg_aead_dec()
881 static int qat_alg_aead_enc_internal(struct aead_request *areq, uint8_t *iv, in qat_alg_aead_enc_internal()
931 static int qat_alg_aead_enc(struct aead_request *areq) in qat_alg_aead_enc()
1098 tfm->crt_aead.reqsize = sizeof(struct aead_request) + in qat_alg_aead_init()
/linux-4.1.27/include/crypto/
Dalgapi.h366 static inline void *aead_request_ctx(struct aead_request *req) in aead_request_ctx()
371 static inline void aead_request_complete(struct aead_request *req, int err) in aead_request_complete()
376 static inline u32 aead_request_flags(struct aead_request *req) in aead_request_flags()
Daead.h30 struct aead_request areq;
/linux-4.1.27/drivers/crypto/
Dpicoxcell_crypto.c323 struct aead_request *areq = container_of(req->req, struct aead_request, in spacc_aead_make_ddts()
406 struct aead_request *areq = container_of(req->req, struct aead_request, in spacc_aead_free_ddts()
546 struct aead_request *aead_req; in spacc_aead_need_fallback()
552 aead_req = container_of(req->req, struct aead_request, base); in spacc_aead_need_fallback()
566 static int spacc_aead_do_fallback(struct aead_request *req, unsigned alg_type, in spacc_aead_do_fallback()
603 struct aead_request *aead_req = in spacc_aead_submit()
604 container_of(req->req, struct aead_request, base); in spacc_aead_submit()
681 static int spacc_aead_setup(struct aead_request *req, u8 *giv, in spacc_aead_setup()
728 static int spacc_aead_encrypt(struct aead_request *req) in spacc_aead_encrypt()
758 static int spacc_aead_decrypt(struct aead_request *req) in spacc_aead_decrypt()
Dixp4xx_crypto.c146 struct aead_request *aead_req;
338 struct aead_request *req = crypt->data.aead_req; in finish_scattered_hmac()
364 struct aead_request *req = crypt->data.aead_req; in one_packet()
989 static int aead_perform(struct aead_request *req, int encrypt, in aead_perform()
1173 static int aead_encrypt(struct aead_request *req) in aead_encrypt()
1180 static int aead_decrypt(struct aead_request *req) in aead_decrypt()
Dtalitos.c791 struct aead_request *areq) in ipsec_esp_unmap()
820 struct aead_request *areq = context; in ipsec_esp_encrypt_done()
850 struct aead_request *req = context; in ipsec_esp_decrypt_swauth_done()
884 struct aead_request *req = context; in ipsec_esp_decrypt_hwauth_done()
940 static int ipsec_esp(struct talitos_edesc *edesc, struct aead_request *areq, in ipsec_esp()
1217 static struct talitos_edesc *aead_edesc_alloc(struct aead_request *areq, u8 *iv, in aead_edesc_alloc()
1230 static int aead_encrypt(struct aead_request *req) in aead_encrypt()
1247 static int aead_decrypt(struct aead_request *req) in aead_decrypt()
1300 struct aead_request *areq = &req->areq; in aead_givencrypt()
/linux-4.1.27/arch/x86/crypto/
Daesni-intel_glue.c810 tfm->crt_aead.reqsize = sizeof(struct aead_request) in rfc4106_init()
997 static int __driver_rfc4106_encrypt(struct aead_request *req) in __driver_rfc4106_encrypt()
1081 static int __driver_rfc4106_decrypt(struct aead_request *req) in __driver_rfc4106_decrypt()
1171 static int rfc4106_encrypt(struct aead_request *req) in rfc4106_encrypt()
1178 struct aead_request *cryptd_req = in rfc4106_encrypt()
1179 (struct aead_request *) aead_request_ctx(req); in rfc4106_encrypt()
1192 static int rfc4106_decrypt(struct aead_request *req) in rfc4106_decrypt()
1199 struct aead_request *cryptd_req = in rfc4106_decrypt()
1200 (struct aead_request *) aead_request_ctx(req); in rfc4106_decrypt()
1213 static int helper_rfc4106_encrypt(struct aead_request *req) in helper_rfc4106_encrypt()
[all …]
/linux-4.1.27/net/ipv6/
Desp6.c110 static inline struct aead_request *esp_tmp_req(struct crypto_aead *aead, u8 *iv) in esp_tmp_req()
112 struct aead_request *req; in esp_tmp_req()
121 struct aead_request *req) in esp_req_sg()
325 struct aead_request *req; in esp6_input()
/linux-4.1.27/net/ipv4/
Desp4.c82 static inline struct aead_request *esp_tmp_req(struct crypto_aead *aead, u8 *iv) in esp_tmp_req()
84 struct aead_request *req; in esp_tmp_req()
93 struct aead_request *req) in esp_req_sg()
376 struct aead_request *req; in esp_input()
/linux-4.1.27/drivers/crypto/caam/
Dcaamalg.c2155 struct aead_request *req) in aead_unmap()
2185 struct aead_request *req = context; in aead_encrypt_done()
2224 struct aead_request *req = context; in aead_decrypt_done()
2347 struct aead_request *req, in init_aead_job()
2432 struct aead_request *req, in init_aead_giv_job()
2611 static struct aead_edesc *aead_edesc_alloc(struct aead_request *req, in aead_edesc_alloc()
2755 static int aead_encrypt(struct aead_request *req) in aead_encrypt()
2792 static int aead_decrypt(struct aead_request *req) in aead_decrypt()
2842 struct aead_request *req = &greq->areq; in aead_giv_edesc_alloc()
3004 struct aead_request *req = &areq->areq; in aead_givencrypt()
/linux-4.1.27/net/mac802154/
Dllsec.c653 struct aead_request *req; in llsec_do_encrypt_auth()
862 struct aead_request *req; in llsec_do_decrypt_auth()