Home
last modified time | relevance | path

Searched refs:encrypted_data (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/tests/bluetooth/bt_crypto_ccm/src/
Dtest_bt_crypto_ccm.c33 uint8_t *encrypted_data = in ZTEST() local
36 memcpy(encrypted_data, p->input, p->input_len); in ZTEST()
40 &encrypted_data[p->aad_len], p->mic_len); in ZTEST()
45 bt_hex(encrypted_data, p->expected_output_len), p->expected_output_len); in ZTEST()
49 zassert_mem_equal(encrypted_data, p->expected_output, p->expected_output_len, in ZTEST()
54 memcpy(decrypted_data, encrypted_data, p->aad_len); in ZTEST()
56 err = bt_ccm_decrypt(p->key, p->nonce, &encrypted_data[p->aad_len], in ZTEST()
69 free(encrypted_data); in ZTEST()