/Zephyr-Core-2.7.6/subsys/mgmt/osdp/src/ |
D | osdp_sc.c | 146 uint8_t iv[16]; in osdp_decrypt_data() local 153 memcpy(iv, is_cmd ? pd->sc.r_mac : pd->sc.c_mac, 16); in osdp_decrypt_data() 155 iv[i] = ~iv[i]; in osdp_decrypt_data() 158 osdp_decrypt(pd->sc.s_enc, iv, data, length); in osdp_decrypt_data() 174 uint8_t iv[16]; in osdp_encrypt_data() local 181 memcpy(iv, is_cmd ? pd->sc.r_mac : pd->sc.c_mac, 16); in osdp_encrypt_data() 183 iv[i] = ~iv[i]; in osdp_encrypt_data() 186 osdp_encrypt(pd->sc.s_enc, iv, data, pad_len); in osdp_encrypt_data() 196 uint8_t iv[16]; in osdp_compute_mac() local 210 memcpy(iv, is_cmd ? pd->sc.r_mac : pd->sc.c_mac, 16); in osdp_compute_mac() [all …]
|
D | osdp_common.c | 85 void osdp_encrypt(uint8_t *key, uint8_t *iv, uint8_t *data, int len) in osdp_encrypt() argument 106 if (iv != NULL) { in osdp_encrypt() 114 if (cipher_cbc_op(&ctx, &encrypt, iv)) { in osdp_encrypt() 132 void osdp_decrypt(uint8_t *key, uint8_t *iv, uint8_t *data, int len) in osdp_decrypt() argument 153 if (iv != NULL) { in osdp_decrypt() 161 if (cipher_cbc_op(&ctx, &decrypt, iv)) { in osdp_decrypt()
|
D | osdp_common.h | 500 void osdp_encrypt(uint8_t *key, uint8_t *iv, uint8_t *data, int len); 501 void osdp_decrypt(uint8_t *key, uint8_t *iv, uint8_t *data, int len);
|
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/radio/ |
D | radio.c | 646 void radio_whiten_iv_set(uint32_t iv) in radio_whiten_iv_set() argument 671 GENFSK_WHITEN_CFG_WHITEN_INIT(iv | 0x40); in radio_whiten_iv_set() 874 void radio_crc_configure(uint32_t polynomial, uint32_t iv) in radio_crc_configure() argument 889 GENFSK->CRC_INIT = (iv << ((4U - GENFSK_BLE_CRC_SZ) << 3)); in radio_crc_configure() 1249 ccm->iv[0] = 0x24; in radio_ccm_rx_pkt_set_ut() 1250 ccm->iv[1] = 0xAB; in radio_ccm_rx_pkt_set_ut() 1251 ccm->iv[2] = 0xDC; in radio_ccm_rx_pkt_set_ut() 1252 ccm->iv[3] = 0xBA; in radio_ccm_rx_pkt_set_ut() 1253 ccm->iv[4] = 0xBE; in radio_ccm_rx_pkt_set_ut() 1254 ccm->iv[5] = 0xBA; in radio_ccm_rx_pkt_set_ut() [all …]
|
D | radio.h | 22 void radio_whiten_iv_set(uint32_t iv); 41 void radio_crc_configure(uint32_t polynomial, uint32_t iv);
|
/Zephyr-Core-2.7.6/drivers/crypto/ |
D | crypto_tc_shim.c | 29 uint8_t *iv) in do_cbc_encrypt() argument 36 iv, in do_cbc_encrypt() 49 uint8_t *iv) in do_cbc_decrypt() argument 56 if (iv != op->in_buf) { in do_cbc_decrypt() 77 uint8_t *iv) in do_ctr_op() argument 86 memcpy(ctr, iv, ivlen); in do_ctr_op()
|
D | crypto_stm32.c | 169 struct cipher_pkt *pkt, uint8_t *iv) in crypto_stm32_cbc_encrypt() argument 177 copy_reverse_words((uint8_t *)vec, sizeof(vec), iv, BLOCK_LEN_BYTES); in crypto_stm32_cbc_encrypt() 182 memcpy(pkt->out_buf, iv, 16); in crypto_stm32_cbc_encrypt() 196 struct cipher_pkt *pkt, uint8_t *iv) in crypto_stm32_cbc_decrypt() argument 204 copy_reverse_words((uint8_t *)vec, sizeof(vec), iv, BLOCK_LEN_BYTES); in crypto_stm32_cbc_decrypt() 221 struct cipher_pkt *pkt, uint8_t *iv) in crypto_stm32_ctr_encrypt() argument 229 copy_reverse_words((uint8_t *)ctr, sizeof(ctr), iv, ivlen); in crypto_stm32_ctr_encrypt() 241 struct cipher_pkt *pkt, uint8_t *iv) in crypto_stm32_ctr_decrypt() argument 249 copy_reverse_words((uint8_t *)ctr, sizeof(ctr), iv, ivlen); in crypto_stm32_ctr_decrypt()
|
D | crypto_mtls_shim.c | 111 int mtls_cbc_encrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt, uint8_t *iv) in mtls_cbc_encrypt() argument 122 memcpy(pkt->out_buf, iv, 16); in mtls_cbc_encrypt() 123 p_iv = iv; in mtls_cbc_encrypt() 126 memcpy(iv_loc, iv, 16); in mtls_cbc_encrypt() 142 int mtls_cbc_decrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt, uint8_t *iv) in mtls_cbc_decrypt() argument 150 p_iv = iv; in mtls_cbc_decrypt() 153 memcpy(iv_loc, iv, 16); in mtls_cbc_decrypt()
|
/Zephyr-Core-2.7.6/include/crypto/ |
D | cipher.h | 228 struct cipher_pkt *pkt, uint8_t *iv) in cipher_cbc_op() argument 234 return ctx->ops.cbc_crypt_hndlr(ctx, pkt, iv); in cipher_cbc_op() 255 struct cipher_pkt *pkt, uint8_t *iv) in cipher_ctr_op() argument 261 return ctx->ops.ctr_crypt_hndlr(ctx, pkt, iv); in cipher_ctr_op()
|
D | cipher_structs.h | 63 uint8_t *iv);
|
/Zephyr-Core-2.7.6/tests/crypto/tinycrypt/src/ |
D | cbc_mode.c | 77 const uint8_t iv[16] = { variable 121 (void)memcpy(iv_buffer, iv, TC_AES_BLOCK_SIZE); in test_cbc_sp_800_38a_encrypt_decrypt()
|
/Zephyr-Core-2.7.6/subsys/bluetooth/mesh/ |
D | net.c | 919 struct iv_val iv; in iv_set() local 930 err = bt_mesh_settings_set(read_cb, cb_arg, &iv, sizeof(iv)); in iv_set() 936 bt_mesh.iv_index = iv.iv_index; in iv_set() 937 atomic_set_bit_to(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS, iv.iv_update); in iv_set() 938 bt_mesh.ivu_duration = iv.iv_duration; in iv_set() 941 iv.iv_index, iv.iv_update, iv.iv_duration); in iv_set() 946 BT_MESH_SETTINGS_DEFINE(iv, "IV", iv_set); 1000 struct iv_val iv; in store_pending_iv() local 1003 iv.iv_index = bt_mesh.iv_index; in store_pending_iv() 1004 iv.iv_update = atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS); in store_pending_iv() [all …]
|
D | Kconfig | 312 hex "Sequence number limit to start iv update" 316 This option specifies the sequence number value to start iv update.
|
D | shell.c | 2667 SHELL_CMD_ARG(iv-update, NULL, NULL, cmd_iv_update, 1, 0), 2668 SHELL_CMD_ARG(iv-update-test, NULL, "<value: off, on>",
|
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/hal/ |
D | ccm.h | 13 uint8_t iv[8]; member
|
/Zephyr-Core-2.7.6/samples/drivers/crypto/src/ |
D | main.c | 227 static uint8_t iv[16] = { in cbc_mode() local 238 if (cipher_cbc_op(&ini, &encrypt, iv)) { in cbc_mode() 317 uint8_t iv[12] = { in ctr_mode() local 328 if (cipher_ctr_op(&ini, &encrypt, iv)) { in ctr_mode() 352 if (cipher_ctr_op(&ini, &decrypt, iv)) { in ctr_mode()
|
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/ |
D | radio.h | 22 void radio_whiten_iv_set(uint32_t iv); 41 void radio_crc_configure(uint32_t polynomial, uint32_t iv);
|
D | radio.c | 217 void radio_whiten_iv_set(uint32_t iv) in radio_whiten_iv_set() argument 219 NRF_RADIO->DATAWHITEIV = iv; in radio_whiten_iv_set() 453 void radio_crc_configure(uint32_t polynomial, uint32_t iv) in radio_crc_configure() argument 461 NRF_RADIO->CRCINIT = iv; in radio_crc_configure()
|
/Zephyr-Core-2.7.6/cmake/emu/ |
D | qemu.cmake | 281 2>&1 | grep -iv \"empty loadable segment detected\" || true 291 2>&1 | grep -iv \"empty loadable segment detected\" || true
|
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/ll_sw/ |
D | ull_conn.c | 3126 memcpy(&lll->ccm_tx.iv[0], &lll->ccm_rx.iv[0], 3127 sizeof(lll->ccm_tx.iv)); 3180 memcpy(&lll->ccm_tx.iv[0], &lll->ccm_rx.iv[0], 3181 sizeof(lll->ccm_tx.iv)); 4526 memcpy(&conn->lll.ccm_rx.iv[4], 5833 memcpy(&conn->lll.ccm_rx.iv[0], 6176 memcpy(&conn->lll.ccm_rx.iv[0], 6200 memcpy(&conn->lll.ccm_rx.iv[4],
|
/Zephyr-Core-2.7.6/doc/guides/crypto/ |
D | tinycrypt.rst | 156 * TinyCrypt CBC decryption assumes that the iv and the ciphertext are
|
/Zephyr-Core-2.7.6/doc/reference/bluetooth/mesh/ |
D | shell.rst | 193 ``mesh iv-update`` 199 ``mesh iv-update-test <value: off, on>``
|