D | aes_ccm.c | 35 dst[13] = a[13] ^ b[13]; in xor16() 40 /* b field is assumed to have the nonce already present in bytes 1-13 */ 99 static int ccm_auth(const uint8_t key[16], uint8_t nonce[13], in ccm_auth() argument 114 memcpy(b + 1, nonce, 13); in ccm_auth() 152 static int ccm_crypt(const uint8_t key[16], const uint8_t nonce[13], in ccm_crypt() argument 167 memcpy(&a_i[1], nonce, 13); in ccm_crypt() 191 int bt_ccm_decrypt(const uint8_t key[16], uint8_t nonce[13], in bt_ccm_decrypt() argument 212 int bt_ccm_encrypt(const uint8_t key[16], uint8_t nonce[13], in bt_ccm_encrypt() argument 219 LOG_DBG("nonce %s", bt_hex(nonce, 13)); in bt_ccm_encrypt()
|