Home
last modified time | relevance | path

Searched refs:iv (Results 1 – 22 of 22) sorted by relevance

/Zephyr-Core-2.7.6/subsys/mgmt/osdp/src/
Dosdp_sc.c146 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 …]
Dosdp_common.c85 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()
Dosdp_common.h500 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/
Dradio.c646 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 …]
Dradio.h22 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/
Dcrypto_tc_shim.c29 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()
Dcrypto_stm32.c169 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()
Dcrypto_mtls_shim.c111 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/
Dcipher.h228 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()
Dcipher_structs.h63 uint8_t *iv);
/Zephyr-Core-2.7.6/tests/crypto/tinycrypt/src/
Dcbc_mode.c77 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/
Dnet.c919 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 …]
DKconfig312 hex "Sequence number limit to start iv update"
316 This option specifies the sequence number value to start iv update.
Dshell.c2667 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/
Dccm.h13 uint8_t iv[8]; member
/Zephyr-Core-2.7.6/samples/drivers/crypto/src/
Dmain.c227 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/
Dradio.h22 void radio_whiten_iv_set(uint32_t iv);
41 void radio_crc_configure(uint32_t polynomial, uint32_t iv);
Dradio.c217 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/
Dqemu.cmake281 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/
Dull_conn.c3126 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/
Dtinycrypt.rst156 * TinyCrypt CBC decryption assumes that the iv and the ciphertext are
/Zephyr-Core-2.7.6/doc/reference/bluetooth/mesh/
Dshell.rst193 ``mesh iv-update``
199 ``mesh iv-update-test <value: off, on>``