/Zephyr-latest/drivers/sensor/adi/adxl367/ |
D | adxl367_decoder.c | 163 static int adxl367_get_accel(const struct adxl367_fifo_data *enc_data, in adxl367_get_accel() argument 172 if (enc_data->has_x) { in adxl367_get_accel() 176 buffer, enc_data->fifo_read_mode, in adxl367_get_accel() 181 if (enc_data->has_y) { in adxl367_get_accel() 185 if (enc_data->has_x) { in adxl367_get_accel() 190 (buffer + buff_offset), enc_data->fifo_read_mode, in adxl367_get_accel() 195 if (enc_data->has_z) { in adxl367_get_accel() 202 if (enc_data->has_x) { in adxl367_get_accel() 206 if (enc_data->has_y) { in adxl367_get_accel() 212 (buffer + buff_offset), enc_data->fifo_read_mode, in adxl367_get_accel() [all …]
|
D | adxl367_rtio.c | 33 struct adxl367_sample_data *enc_data = (struct adxl367_sample_data *)buffer; in adxl367_submit_fetch() local 36 enc_data->is_fifo = 0; in adxl367_submit_fetch() 39 rc = adxl367_get_accel_data(dev, &enc_data->xyz); in adxl367_submit_fetch() 46 enc_data->xyz.range = data->range; in adxl367_submit_fetch() 48 rc = adxl367_get_temp_data(dev, &enc_data->raw_temp); in adxl367_submit_fetch()
|
/Zephyr-latest/tests/bluetooth/host/crypto/bt_encrypt_be/src/ |
D | test_suite_invalid_inputs.c | 30 uint8_t enc_data[16] = {0}; in ZTEST() local 33 bt_encrypt_le(NULL, plaintext, enc_data); in ZTEST() 49 uint8_t enc_data[16] = {0}; in ZTEST() local 52 bt_encrypt_le(key, NULL, enc_data); in ZTEST() 88 uint8_t enc_data[16] = {0}; in ZTEST() local 92 err = bt_encrypt_le(key, plaintext, enc_data); in ZTEST() 112 uint8_t enc_data[16] = {0}; in ZTEST() local 117 err = bt_encrypt_le(key, plaintext, enc_data); in ZTEST()
|
D | main.c | 42 uint8_t enc_data[16] = {0}; in ZTEST() local 47 err = bt_encrypt_be(key, plaintext, enc_data); in ZTEST() 49 expect_single_call_psa_cipher_encrypt(enc_data); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/host/crypto/bt_encrypt_le/src/ |
D | test_suite_invalid_inputs.c | 30 uint8_t enc_data[16] = {0}; in ZTEST() local 33 bt_encrypt_le(NULL, plaintext, enc_data); in ZTEST() 49 uint8_t enc_data[16] = {0}; in ZTEST() local 52 bt_encrypt_le(key, NULL, enc_data); in ZTEST() 88 uint8_t enc_data[16] = {0}; in ZTEST() local 92 err = bt_encrypt_le(key, plaintext, enc_data); in ZTEST() 112 uint8_t enc_data[16] = {0}; in ZTEST() local 117 err = bt_encrypt_le(key, plaintext, enc_data); in ZTEST()
|
D | main.c | 42 uint8_t enc_data[16] = {0}; in ZTEST() local 47 err = bt_encrypt_le(key, plaintext, enc_data); in ZTEST() 49 expect_single_call_psa_cipher_encrypt(enc_data); in ZTEST()
|
/Zephyr-latest/subsys/bluetooth/controller/crypto/ |
D | crypto.c | 24 uint8_t enc_data[16]) in bt_encrypt_le() 29 ecb_encrypt(key, plaintext, enc_data, NULL); in bt_encrypt_le() 31 LOG_DBG("enc_data %s", bt_hex(enc_data, 16)); in bt_encrypt_le() 37 uint8_t enc_data[16]) in bt_encrypt_be() 42 ecb_encrypt_be(key, plaintext, enc_data); in bt_encrypt_be() 44 LOG_DBG("enc_data %s", bt_hex(enc_data, 16)); in bt_encrypt_be()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | crypto_psa.c | 61 uint8_t enc_data[16]) in bt_encrypt_le() 69 CHECKIF(key == NULL || plaintext == NULL || enc_data == NULL) { in bt_encrypt_le() 90 enc_data, 16, &out_len); in bt_encrypt_le() 104 sys_mem_swap(enc_data, 16); in bt_encrypt_le() 106 LOG_DBG("enc_data %s", bt_hex(enc_data, 16)); in bt_encrypt_le() 112 uint8_t enc_data[16]) in bt_encrypt_be() 119 CHECKIF(key == NULL || plaintext == NULL || enc_data == NULL) { in bt_encrypt_be() 136 plaintext, 16, enc_data, 16, &out_len); in bt_encrypt_be() 150 LOG_DBG("enc_data %s", bt_hex(enc_data, 16)); in bt_encrypt_be()
|
D | aes_ccm.c | 192 const uint8_t *enc_data, size_t len, const uint8_t *aad, in bt_ccm_decrypt() argument 201 ccm_crypt(key, nonce, enc_data, plaintext, len); 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 216 uint8_t *mic = enc_data + len; in bt_ccm_encrypt() 230 ccm_crypt(key, nonce, plaintext, enc_data, len); in bt_ccm_encrypt()
|
D | smp.c | 1922 uint8_t enc_data[16]) in smp_c1() 1945 mem_xor_128(enc_data, r, p1); in smp_c1() 1947 err = bt_encrypt_le(k, enc_data, enc_data); in smp_c1() 1959 mem_xor_128(enc_data, p2, enc_data); in smp_c1() 1961 return bt_encrypt_le(k, enc_data, enc_data); in smp_c1()
|
/Zephyr-latest/drivers/sensor/adi/adxl372/ |
D | adxl372_decoder.c | 38 const struct adxl372_fifo_data *enc_data = (const struct adxl372_fifo_data *)buffer; in adxl372_decode_stream() local 40 buffer + sizeof(struct adxl372_fifo_data) + enc_data->fifo_byte_count; in adxl372_decode_stream() 51 data->header.base_timestamp_ns = enc_data->timestamp; in adxl372_decode_stream() 57 uint8_t sample_set_size = enc_data->sample_set_size; in adxl372_decode_stream() 58 uint64_t period_ns = accel_period_ns[enc_data->accel_odr]; in adxl372_decode_stream() 78 if (enc_data->has_x) { in adxl372_decode_stream() 84 if (enc_data->has_y) { in adxl372_decode_stream() 88 if (enc_data->has_x) { in adxl372_decode_stream() 97 if (enc_data->has_z) { in adxl372_decode_stream() 103 if (enc_data->has_x) { in adxl372_decode_stream() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | crypto.h | 54 uint8_t enc_data[16]); 69 uint8_t enc_data[16]); 92 int bt_ccm_decrypt(const uint8_t key[16], uint8_t nonce[13], const uint8_t *enc_data, 118 size_t aad_len, uint8_t *enc_data, size_t mic_size);
|
D | hci_types.h | 1216 uint8_t enc_data[16]; member
|
/Zephyr-latest/drivers/sensor/adi/adxl362/ |
D | adxl362_decoder.c | 70 const struct adxl362_fifo_data *enc_data = (const struct adxl362_fifo_data *)buffer; in adxl362_decode_stream() local 72 buffer + sizeof(struct adxl362_fifo_data) + enc_data->fifo_byte_count; in adxl362_decode_stream() 85 if (enc_data->has_tmp) { in adxl362_decode_stream() 89 uint64_t period_ns = accel_period_ns[enc_data->accel_odr]; in adxl362_decode_stream() 108 if (enc_data->has_tmp) { in adxl362_decode_stream() 112 data->header.base_timestamp_ns = enc_data->timestamp; in adxl362_decode_stream() 132 data->header.base_timestamp_ns = enc_data->timestamp; in adxl362_decode_stream() 134 data->shift = range_to_shift[enc_data->selected_range]; in adxl362_decode_stream() 147 data_in, enc_data->selected_range); in adxl362_decode_stream() 160 data_in, enc_data->selected_range); in adxl362_decode_stream() [all …]
|
/Zephyr-latest/drivers/sensor/adi/adxl345/ |
D | adxl345_decoder.c | 91 const struct adxl345_fifo_data *enc_data = (const struct adxl345_fifo_data *)buffer; in adxl345_decode_stream() local 93 buffer + sizeof(struct adxl345_fifo_data) + enc_data->fifo_byte_count; in adxl345_decode_stream() 104 data->header.base_timestamp_ns = enc_data->timestamp; in adxl345_decode_stream() 106 data->shift = range_to_shift[enc_data->selected_range]; in adxl345_decode_stream() 110 uint8_t sample_set_size = enc_data->sample_set_size; in adxl345_decode_stream() 111 uint64_t period_ns = accel_period_ns[enc_data->accel_odr]; in adxl345_decode_stream() 112 uint8_t is_full_res = enc_data->is_full_res; in adxl345_decode_stream() 136 enc_data->selected_range, is_full_res); in adxl345_decode_stream() 140 enc_data->selected_range, is_full_res); in adxl345_decode_stream() 144 enc_data->selected_range, is_full_res); in adxl345_decode_stream()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | crypto_tc.c | 37 uint8_t enc_data[16]) in bt_mesh_encrypt() 39 return bt_encrypt_be(key->key, plaintext, enc_data); in bt_mesh_encrypt() 43 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() 49 int bt_mesh_ccm_decrypt(const struct bt_mesh_key *key, uint8_t nonce[13], const uint8_t *enc_data, 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 | 61 uint8_t enc_data[16]) in bt_mesh_encrypt() 69 enc_data, 16, in bt_mesh_encrypt() 81 size_t aad_len, uint8_t *enc_data, size_t mic_size) in bt_mesh_ccm_encrypt() argument 92 enc_data, len + mic_size, in bt_mesh_ccm_encrypt() 103 const uint8_t *enc_data, size_t len, const uint8_t *aad, in bt_mesh_ccm_decrypt() argument 114 enc_data, len + mic_size, in bt_mesh_ccm_decrypt()
|
D | crypto.h | 24 uint8_t enc_data[16]); 27 size_t len, const uint8_t *aad, size_t aad_len, uint8_t *enc_data, 30 int bt_mesh_ccm_decrypt(const struct bt_mesh_key *key, uint8_t nonce[13], const uint8_t *enc_data,
|
/Zephyr-latest/subsys/bluetooth/common/ |
D | rpa.c | 44 uint8_t enc_data[16]) in internal_encrypt_le() 48 ecb_encrypt(key, plaintext, enc_data, NULL); in internal_encrypt_le() 51 return bt_encrypt_le(key, plaintext, enc_data); in internal_encrypt_le()
|
/Zephyr-latest/subsys/bluetooth/controller/hci/ |
D | hci.c | 1488 uint8_t enc_data[16]; in le_encrypt() local 1490 ecb_encrypt(cmd->key, cmd->plaintext, enc_data, NULL); in le_encrypt() 1495 memcpy(rp->enc_data, enc_data, 16); in le_encrypt()
|