Searched refs:aead_req (Results 1 – 4 of 4) sorted by relevance
/net/mac80211/ |
D | aead_api.c | 23 struct aead_request *aead_req; in aead_encrypt() local 24 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); in aead_encrypt() 27 aead_req = kzalloc(reqsize + aad_len, GFP_ATOMIC); in aead_encrypt() 28 if (!aead_req) in aead_encrypt() 31 __aad = (u8 *)aead_req + reqsize; in aead_encrypt() 39 aead_request_set_tfm(aead_req, tfm); in aead_encrypt() 40 aead_request_set_crypt(aead_req, sg, sg, data_len, b_0); in aead_encrypt() 41 aead_request_set_ad(aead_req, sg[0].length); in aead_encrypt() 43 crypto_aead_encrypt(aead_req); in aead_encrypt() 44 kzfree(aead_req); in aead_encrypt() [all …]
|
D | aes_gmac.c | 22 struct aead_request *aead_req; in ieee80211_aes_gmac() local 23 int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); in ieee80211_aes_gmac() 28 aead_req = kzalloc(reqsize + GMAC_MIC_LEN + GMAC_AAD_LEN, GFP_ATOMIC); in ieee80211_aes_gmac() 29 if (!aead_req) in ieee80211_aes_gmac() 32 zero = (u8 *)aead_req + reqsize; in ieee80211_aes_gmac() 46 aead_request_set_tfm(aead_req, tfm); in ieee80211_aes_gmac() 47 aead_request_set_crypt(aead_req, sg, sg, 0, iv); in ieee80211_aes_gmac() 48 aead_request_set_ad(aead_req, GMAC_AAD_LEN + data_len); in ieee80211_aes_gmac() 50 crypto_aead_encrypt(aead_req); in ieee80211_aes_gmac() 51 kzfree(aead_req); in ieee80211_aes_gmac()
|
/net/tls/ |
D | tls_device_fallback.c | 48 static int tls_enc_record(struct aead_request *aead_req, in tls_enc_record() argument 113 aead_request_set_crypt(aead_req, sg_in, sg_out, len, iv); in tls_enc_record() 115 rc = crypto_aead_encrypt(aead_req); in tls_enc_record() 120 static void tls_init_aead_request(struct aead_request *aead_req, in tls_init_aead_request() argument 123 aead_request_set_tfm(aead_req, aead); in tls_init_aead_request() 124 aead_request_set_ad(aead_req, TLS_AAD_SPACE_SIZE); in tls_init_aead_request() 132 struct aead_request *aead_req; in tls_alloc_aead_request() local 134 aead_req = kzalloc(req_size, flags); in tls_alloc_aead_request() 135 if (aead_req) in tls_alloc_aead_request() 136 tls_init_aead_request(aead_req, aead); in tls_alloc_aead_request() [all …]
|
D | tls_sw.c | 163 struct aead_request *aead_req = (struct aead_request *)req; in tls_decrypt_done() local 164 struct scatterlist *sgout = aead_req->dst; in tls_decrypt_done() 165 struct scatterlist *sgin = aead_req->src; in tls_decrypt_done() 214 kfree(aead_req); in tls_decrypt_done() 230 struct aead_request *aead_req, in tls_do_decryption() argument 238 aead_request_set_tfm(aead_req, ctx->aead_recv); in tls_do_decryption() 239 aead_request_set_ad(aead_req, prot->aad_size); in tls_do_decryption() 240 aead_request_set_crypt(aead_req, sgin, sgout, in tls_do_decryption() 252 aead_request_set_callback(aead_req, in tls_do_decryption() 257 aead_request_set_callback(aead_req, in tls_do_decryption() [all …]
|