D | aes-ccm.c | 29 static void aes_ccm_auth_start(void *aes, size_t M, size_t L, const u8 *nonce, in aes_ccm_auth_start() argument 40 b[0] |= (L - 1) /* L' */; in aes_ccm_auth_start() 41 os_memcpy(&b[1], nonce, 15 - L); in aes_ccm_auth_start() 42 WPA_PUT_BE16(&b[AES_BLOCK_SIZE - L], plain_len); in aes_ccm_auth_start() 85 static void aes_ccm_encr_start(size_t L, const u8 *nonce, u8 *a) in aes_ccm_encr_start() argument 88 a[0] = L - 1; /* Flags = L' */ in aes_ccm_encr_start() 89 os_memcpy(&a[1], nonce, 15 - L); in aes_ccm_encr_start() 93 static void aes_ccm_encr(void *aes, size_t L, const u8 *in, size_t len, u8 *out, in aes_ccm_encr() argument 153 const size_t L = 2; in aes_ccm_ae() local 164 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, plain_len, x); in aes_ccm_ae() [all …]
|