Lines Matching refs:nonce
28 static void aes_ccm_auth_start(void *aes, size_t M, size_t L, const u8 *nonce,
36 /* B_0: Flags | Nonce N | l(m) */
40 os_memcpy(&b[1], nonce, 15 - L);
84 static void aes_ccm_encr_start(size_t L, const u8 *nonce, u8 *a)
86 /* A_i = Flags | Nonce N | Counter i */
88 os_memcpy(&a[1], nonce, 15 - L);
148 int aes_ccm_ae(const u8 *key, size_t key_len, const u8 *nonce,
163 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, plain_len, x);
167 aes_ccm_encr_start(L, nonce, a);
178 int aes_ccm_ad(const u8 *key, size_t key_len, const u8 *nonce,
195 aes_ccm_encr_start(L, nonce, a);
201 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, crypt_len, x);