Lines Matching refs:data_len
30 u8 *data, size_t data_len, u8 *tag) in aes_128_eax_encrypt() argument
38 if (nonce_len > data_len) in aes_128_eax_encrypt()
41 buf_len = data_len; in aes_128_eax_encrypt()
62 if (aes_128_ctr_encrypt(key, nonce_mac, data, data_len)) in aes_128_eax_encrypt()
65 os_memcpy(buf + 16, data, data_len); in aes_128_eax_encrypt()
66 if (omac1_aes_128(key, buf, 16 + data_len, data_mac)) in aes_128_eax_encrypt()
94 u8 *data, size_t data_len, const u8 *tag) in aes_128_eax_decrypt() argument
102 if (nonce_len > data_len) in aes_128_eax_decrypt()
105 buf_len = data_len; in aes_128_eax_decrypt()
131 os_memcpy(buf + 16, data, data_len); in aes_128_eax_decrypt()
132 if (omac1_aes_128(key, buf, 16 + data_len, data_mac)) { in aes_128_eax_decrypt()
144 return aes_128_ctr_encrypt(key, nonce_mac, data, data_len); in aes_128_eax_decrypt()