Lines Matching refs:nonce_len
332 * @nonce_len: Nonce length in bytes
340 int aes_128_eax_encrypt(const u8 *key, const u8 *nonce, size_t nonce_len,
349 if (nonce_len > data_len)
350 buf_len = nonce_len;
364 os_memcpy(buf + 16, nonce, nonce_len);
365 omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac);
389 * @nonce_len: Nonce length in bytes
397 int aes_128_eax_decrypt(const u8 *key, const u8 *nonce, size_t nonce_len,
406 if (nonce_len > data_len)
407 buf_len = nonce_len;
421 os_memcpy(buf + 16, nonce, nonce_len);
422 omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac);