Searched refs:BT_EAD_RANDOMIZER_SIZE (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/subsys/bluetooth/lib/ |
D | ead.c | 36 static int bt_ead_generate_randomizer(uint8_t randomizer[BT_EAD_RANDOMIZER_SIZE]) in bt_ead_generate_randomizer() argument 40 err = bt_rand(randomizer, BT_EAD_RANDOMIZER_SIZE); in bt_ead_generate_randomizer() 55 const uint8_t randomizer[BT_EAD_RANDOMIZER_SIZE], uint8_t *nonce) in bt_ead_generate_nonce() argument 57 uint8_t new_randomizer[BT_EAD_RANDOMIZER_SIZE]; in bt_ead_generate_nonce() 72 memcpy(&nonce[0], randomizer, BT_EAD_RANDOMIZER_SIZE); in bt_ead_generate_nonce() 73 memcpy(&nonce[BT_EAD_RANDOMIZER_SIZE], iv, BT_EAD_IV_SIZE); in bt_ead_generate_nonce() 79 const uint8_t randomizer[BT_EAD_RANDOMIZER_SIZE], const uint8_t *payload, in ead_encrypt() argument 84 size_t ead_size = BT_EAD_RANDOMIZER_SIZE + payload_size + BT_EAD_MIC_SIZE; in ead_encrypt() 91 memcpy(encrypted_payload, nonce, BT_EAD_RANDOMIZER_SIZE); in ead_encrypt() 94 &encrypted_payload[BT_EAD_RANDOMIZER_SIZE], BT_EAD_MIC_SIZE); in ead_encrypt() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | ead.h | 26 #define BT_EAD_RANDOMIZER_SIZE 5 macro 38 ((payload_size) + BT_EAD_RANDOMIZER_SIZE + BT_EAD_MIC_SIZE) 44 ((encrypted_payload_size) - (BT_EAD_RANDOMIZER_SIZE + BT_EAD_MIC_SIZE))
|
/Zephyr-latest/tests/bsim/bluetooth/host/adv/encrypted/css_sample_data/src/ |
D | central.c | 28 BT_EAD_RANDOMIZER_SIZE) != 0) { in data_parse_cb() 30 bt_hex(data->data, BT_EAD_RANDOMIZER_SIZE)); in data_parse_cb() 33 BT_EAD_RANDOMIZER_SIZE)); in data_parse_cb()
|
D | common.h | 46 const uint8_t randomizer[BT_EAD_RANDOMIZER_SIZE], const uint8_t *payload, 77 const uint8_t randomizer_little_endian[BT_EAD_RANDOMIZER_SIZE];
|