Lines Matching full:aad
41 static int ccm_calculate_X0(const uint8_t key[16], const uint8_t *aad, uint8_t aad_len, in ccm_calculate_X0() argument
57 /* If AAD is being used to authenticate, include it here */ in ccm_calculate_X0()
69 b[i] = X0[i] ^ aad[j]; in ccm_calculate_X0()
83 b[i] = X0[i] ^ aad[j]; in ccm_calculate_X0()
100 const uint8_t *cleartext_msg, uint16_t msg_len, const uint8_t *aad, in ccm_auth() argument
124 ccm_calculate_X0(key, aad, aad_len, mic_size, msg_len, b, Xn); in ccm_auth()
192 const uint8_t *enc_data, size_t len, const uint8_t *aad, in bt_ccm_decrypt() argument
203 ccm_auth(key, nonce, plaintext, len, aad, aad_len, mic, mic_size); in bt_ccm_decrypt()
213 const uint8_t *plaintext, size_t len, const uint8_t *aad, in bt_ccm_encrypt() argument
223 /* Unsupported AAD size */ in bt_ccm_encrypt()
228 ccm_auth(key, nonce, plaintext, len, aad, aad_len, mic, mic_size); in bt_ccm_encrypt()