Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/subsys/bluetooth/host/
Daes_ccm.c41 static int ccm_calculate_X0(const uint8_t key[16], const uint8_t *aad, uint8_t aad_len, in ccm_calculate_X0() argument
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
228 ccm_auth(key, nonce, plaintext, len, aad, aad_len, mic, mic_size); in bt_ccm_encrypt()
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/
Dcrypto.h93 size_t len, const uint8_t *aad, size_t aad_len,
117 const uint8_t *plaintext, size_t len, const uint8_t *aad,
/Zephyr-Core-3.5.0/subsys/bluetooth/mesh/
Dcrypto_tc.c43 size_t len, const uint8_t *aad, size_t aad_len, uint8_t *enc_data, in bt_mesh_ccm_encrypt() argument
46 return bt_ccm_encrypt(key->key, nonce, plaintext, len, aad, aad_len, enc_data, mic_size); in bt_mesh_ccm_encrypt()
50 size_t len, const uint8_t *aad, size_t aad_len, uint8_t *plaintext, in bt_mesh_ccm_decrypt() argument
53 return bt_ccm_decrypt(key->key, nonce, enc_data, len, aad, aad_len, plaintext, mic_size); in bt_mesh_ccm_decrypt()
Dcrypto_psa.c79 const uint8_t *plaintext, size_t len, const uint8_t *aad, in bt_mesh_ccm_encrypt() argument
89 aad, aad_len, in bt_mesh_ccm_encrypt()
102 const uint8_t *enc_data, size_t len, const uint8_t *aad, in bt_mesh_ccm_decrypt() argument
112 aad, aad_len, in bt_mesh_ccm_decrypt()
Dcrypto.h27 size_t len, const uint8_t *aad, size_t aad_len, uint8_t *enc_data,
31 size_t len, const uint8_t *aad, size_t aad_len, uint8_t *plaintext,
/Zephyr-Core-3.5.0/tests/bluetooth/bt_crypto_ccm/src/
Dtest_bt_crypto_ccm.c31 const uint8_t *aad = p->input; in ZTEST() local
39 p->input_len - p->aad_len, aad, p->aad_len, in ZTEST()
57 p->input_len - p->aad_len, aad, p->aad_len, in ZTEST()
/Zephyr-Core-3.5.0/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/radio/
Dradio.c1378 uint8_t aad; in radio_ccm_tx_pkt_set() local
1409 aad = *(uint8_t *)pkt & RADIO_AESCCM_HDR_MASK; in radio_ccm_tx_pkt_set()
1415 &aad, 1, auth_mic, CAU3_BLE_MIC_SIZE); in radio_ccm_tx_pkt_set()
1431 uint8_t aad; in radio_ccm_is_done() local
1440 aad = *(uint8_t *)ctx_ccm.rx_pkt_in & RADIO_AESCCM_HDR_MASK; in radio_ccm_is_done()
1446 &aad, 1, auth_mic, CAU3_BLE_MIC_SIZE); in radio_ccm_is_done()
/Zephyr-Core-3.5.0/modules/uoscore-uedhoc/
DCMakeLists.txt49 ${UOSCORE_UEDHOC_SRC_DIR}/oscore/aad.c