Searched refs:aad_len (Results 1 – 3 of 3) sorted by relevance
/net/mac80211/ |
D | aead_api.c | 18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt() argument 27 aead_req = kzalloc(reqsize + aad_len, GFP_ATOMIC); in aead_encrypt() 32 memcpy(__aad, aad, aad_len); in aead_encrypt() 35 sg_set_buf(&sg[0], __aad, aad_len); in aead_encrypt() 49 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_decrypt() argument 62 aead_req = kzalloc(reqsize + aad_len, GFP_ATOMIC); in aead_decrypt() 67 memcpy(__aad, aad, aad_len); in aead_decrypt() 70 sg_set_buf(&sg[0], __aad, aad_len); in aead_decrypt()
|
D | aead_api.h | 14 size_t aad_len, u8 *data, 18 size_t aad_len, u8 *data,
|
/net/wireless/ |
D | lib80211_crypt_ccmp.c | 98 size_t aad_len; in ccmp_init_iv_and_aad() local 104 aad_len = 22; in ccmp_init_iv_and_aad() 106 aad_len += 6; in ccmp_init_iv_and_aad() 112 aad_len += 2; in ccmp_init_iv_and_aad() 150 return aad_len; in ccmp_init_iv_and_aad() 198 int len, data_len, aad_len; in lib80211_ccmp_encrypt() local 214 aad_len = ccmp_init_iv_and_aad(hdr, key->tx_pn, iv, aad); in lib80211_ccmp_encrypt() 219 sg_set_buf(&sg[0], aad, aad_len); in lib80211_ccmp_encrypt() 224 aead_request_set_ad(req, aad_len); in lib80211_ccmp_encrypt() 264 int aad_len, ret; in lib80211_ccmp_decrypt() local [all …]
|