Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/subsys/bluetooth/host/
Daes_ccm.c42 size_t mic_size, uint16_t msg_len, uint8_t b[16], in ccm_calculate_X0() argument
48 b[0] = (((mic_size - 2) / 2) << 3) | ((!!aad_len) << 6) | 0x01; in ccm_calculate_X0()
101 size_t aad_len, uint8_t *mic, size_t mic_size) in ccm_auth() argument
124 ccm_calculate_X0(key, aad, aad_len, mic_size, msg_len, b, Xn); in ccm_auth()
145 for (i = 0; i < mic_size; i++) { in ccm_auth()
193 size_t aad_len, uint8_t *plaintext, size_t mic_size) in bt_ccm_decrypt() argument
197 if (aad_len >= 0xff00 || mic_size > sizeof(mic) || len > UINT16_MAX) { in bt_ccm_decrypt()
203 ccm_auth(key, nonce, plaintext, len, aad, aad_len, mic, mic_size); in bt_ccm_decrypt()
205 if (memcmp(mic, enc_data + len, mic_size)) { in bt_ccm_decrypt()
214 size_t aad_len, uint8_t *enc_data, size_t mic_size) in bt_ccm_encrypt() argument
[all …]
/Zephyr-Core-3.7.0/include/zephyr/bluetooth/
Dcrypto.h94 uint8_t *plaintext, size_t mic_size);
118 size_t aad_len, uint8_t *enc_data, size_t mic_size);
/Zephyr-Core-3.7.0/subsys/bluetooth/mesh/
Dcrypto_tc.c44 size_t mic_size) 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()
51 size_t mic_size) 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.c81 size_t aad_len, uint8_t *enc_data, size_t mic_size) in bt_mesh_ccm_encrypt() argument
86 psa_algorithm_t alg = PSA_ALG_AEAD_WITH_SHORTENED_TAG(PSA_ALG_CCM, mic_size); in bt_mesh_ccm_encrypt()
92 enc_data, len + mic_size, in bt_mesh_ccm_encrypt()
95 if (status != PSA_SUCCESS || output_len != len + mic_size) { in bt_mesh_ccm_encrypt()
104 size_t aad_len, uint8_t *plaintext, size_t mic_size) in bt_mesh_ccm_decrypt() argument
109 psa_algorithm_t alg = PSA_ALG_AEAD_WITH_SHORTENED_TAG(PSA_ALG_CCM, mic_size); in bt_mesh_ccm_decrypt()
114 enc_data, len + mic_size, in bt_mesh_ccm_decrypt()
Dcrypto.h28 size_t mic_size);
32 size_t mic_size);
/Zephyr-Core-3.7.0/subsys/bluetooth/controller/ll_sw/
Dull_conn.c1989 uint8_t mic_size; in force_md_cnt_calc() local
2001 mic_size = PDU_MIC_SIZE * lll_connection->enc_tx; in force_md_cnt_calc()
2003 mic_size = 0U; in force_md_cnt_calc()
2008 time_outgoing = PDU_DC_US(LL_LENGTH_OCTETS_RX_MAX, mic_size, phy, in force_md_cnt_calc()