Searched refs:aead_req (Results 1 – 2 of 2) sorted by relevance
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/umac/ |
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()
|