Lines Matching refs:session_key
78 static int ead_encrypt(const uint8_t session_key[BT_EAD_KEY_SIZE], const uint8_t iv[BT_EAD_IV_SIZE], in ead_encrypt()
93 err = bt_ccm_encrypt(session_key, nonce, payload, payload_size, bt_ead_aad, BT_EAD_AAD_SIZE, in ead_encrypt()
105 int bt_ead_encrypt(const uint8_t session_key[BT_EAD_KEY_SIZE], const uint8_t iv[BT_EAD_IV_SIZE], in bt_ead_encrypt()
108 CHECKIF(session_key == NULL) { in bt_ead_encrypt()
133 return ead_encrypt(session_key, iv, NULL, payload, payload_size, encrypted_payload); in bt_ead_encrypt()
138 int bt_test_ead_encrypt(const uint8_t session_key[BT_EAD_KEY_SIZE], in bt_test_ead_encrypt()
143 CHECKIF(session_key == NULL) { in bt_test_ead_encrypt()
173 return ead_encrypt(session_key, iv, randomizer, payload, payload_size, encrypted_payload); in bt_test_ead_encrypt()
178 static int ead_decrypt(const uint8_t session_key[BT_EAD_KEY_SIZE], const uint8_t iv[BT_EAD_IV_SIZE], in ead_decrypt()
197 err = bt_ccm_decrypt(session_key, nonce, encrypted_ad_data, payload_size, bt_ead_aad, in ead_decrypt()
208 int bt_ead_decrypt(const uint8_t session_key[BT_EAD_KEY_SIZE], const uint8_t iv[BT_EAD_IV_SIZE], in bt_ead_decrypt()
212 CHECKIF(session_key == NULL) { in bt_ead_decrypt()
239 return ead_decrypt(session_key, iv, encrypted_payload, encrypted_payload_size, payload); in bt_ead_decrypt()