Searched refs:mic_size (Results 1 – 6 of 6) sorted by relevance
/Zephyr-Core-3.7.0/subsys/bluetooth/host/ |
D | aes_ccm.c | 42 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/ |
D | crypto.h | 94 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/ |
D | crypto_tc.c | 44 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()
|
D | crypto_psa.c | 81 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()
|
D | crypto.h | 28 size_t mic_size); 32 size_t mic_size);
|
/Zephyr-Core-3.7.0/subsys/bluetooth/controller/ll_sw/ |
D | ull_conn.c | 1989 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()
|