Home
last modified time | relevance | path

Searched full:iv (Results 1 – 25 of 47) sorted by relevance

12

/nrf52832-nimble/packages/NimBLE-latest/ext/tinycrypt/src/
H A Dsha256.c37 static void compress(unsigned int *iv, const uint8_t *data);
53 s->iv[0] = 0x6a09e667; in tc_sha256_init()
54 s->iv[1] = 0xbb67ae85; in tc_sha256_init()
55 s->iv[2] = 0x3c6ef372; in tc_sha256_init()
56 s->iv[3] = 0xa54ff53a; in tc_sha256_init()
57 s->iv[4] = 0x510e527f; in tc_sha256_init()
58 s->iv[5] = 0x9b05688c; in tc_sha256_init()
59 s->iv[6] = 0x1f83d9ab; in tc_sha256_init()
60 s->iv[7] = 0x5be0cd19; in tc_sha256_init()
78 compress(s->iv, s->leftover); in tc_sha256_update()
[all …]
H A Dcmac_mode.c113 /* compute s->K1 and s->K2 from s->iv using s->keyid */ in tc_cmac_setup()
114 _set(s->iv, 0, TC_AES_BLOCK_SIZE); in tc_cmac_setup()
115 tc_aes_encrypt(s->iv, s->iv, s->sched); in tc_cmac_setup()
116 gf_double (s->K1, s->iv); in tc_cmac_setup()
119 /* reset s->iv to 0 in case someone wants to compute now */ in tc_cmac_setup()
145 _set(s->iv, 0, TC_AES_BLOCK_SIZE); in tc_cmac_init()
198 s->iv[i] ^= s->leftover[i]; in tc_cmac_update()
200 tc_aes_encrypt(s->iv, s->iv, s->sched); in tc_cmac_update()
206 s->iv[i] ^= data[i]; in tc_cmac_update()
208 tc_aes_encrypt(s->iv, s->iv, s->sched); in tc_cmac_update()
[all …]
H A Dcbc_mode.c38 unsigned int inlen, const uint8_t *iv, in tc_cbc_mode_encrypt() argument
57 /* copy iv to the buffer */ in tc_cbc_mode_encrypt()
58 (void)_copy(buffer, TC_AES_BLOCK_SIZE, iv, TC_AES_BLOCK_SIZE); in tc_cbc_mode_encrypt()
59 /* copy iv to the output buffer */ in tc_cbc_mode_encrypt()
60 (void)_copy(out, TC_AES_BLOCK_SIZE, iv, TC_AES_BLOCK_SIZE); in tc_cbc_mode_encrypt()
78 unsigned int inlen, const uint8_t *iv, in tc_cbc_mode_decrypt() argument
99 * Note that in == iv + ciphertext, i.e. the iv and the ciphertext are in tc_cbc_mode_decrypt()
103 p = iv; in tc_cbc_mode_decrypt()
/nrf52832-nimble/packages/NimBLE-latest/ext/tinycrypt/include/tinycrypt/
H A Dcbc_mode.h49 * CBC mode assumes that the IV value input into the
57 * the unpredictability of the IV. Since it is unpredictable, this
58 * means in practice that CBC mode requires that the IV is stored
61 * TinyCrypt CBC encryption prepends the IV to the ciphertext,
86 * using the encryption key schedule provided, prepends iv to out
98 * - iv contains a 16 byte random string
99 * - out buffer is large enough to hold the ciphertext + iv
107 * @param iv IN -- the IV for the this encrypt/decrypt
111 unsigned int inlen, const uint8_t *iv,
128 * @note Assumes:- in == iv + ciphertext, i.e. the iv and the ciphertext are
[all …]
H A Dsha256.h72 unsigned int iv[TC_SHA256_STATE_BLOCKS]; member
95 * s->iv == NULL,
113 * s->iv == NULL,
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/services/dis/include/services/dis/
H A Dble_svc_dis.h27 * struct image_version iv;
28 * if (!imgr_my_version(&iv)) {
30 * "%u.%u.%u", iv.iv_major, iv.iv_minor, iv.iv_revision);
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/include/mesh/
H A Dmain.h289 * @param iv_index IV Index
310 /** @brief Toggle the IV Update test mode
312 * This API is only available if the IV Update test mode has been enabled
313 * in Kconfig. It is needed for passing most of the IV Update qualification
316 * @param enable true to enable IV Update test mode, false to disable it.
320 /** @brief Toggle the IV Update state
322 * This API is only available if the IV Update test mode has been enabled
323 * in Kconfig. It is needed for passing most of the IV Update qualification
326 * @return true if IV Update In Progress state was entered, false otherwise.
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/src/
H A Dsettings.c71 /* IV Index & IV Update storage */
152 struct iv_val iv; in iv_set() local
163 len = sizeof(iv); in iv_set()
164 err = settings_bytes_from_str(val, &iv, &len); in iv_set()
170 if (len != sizeof(iv)) { in iv_set()
171 BT_ERR("Unexpected value length (%d != %zu)", len, sizeof(iv)); in iv_set()
175 bt_mesh.iv_index = iv.iv_index; in iv_set()
176 bt_mesh.iv_update = iv.iv_update; in iv_set()
177 bt_mesh.ivu_duration = iv.iv_duration; in iv_set()
179 BT_DBG("IV Index 0x%04x (IV Update Flag %u) duration %u hours", in iv_set()
[all …]
H A Dnet.h217 u32_t iv_index; /* Current IV Index */
219 iv_update:1, /* 1 if IV Update in Progress */
220 ivu_initiator:1, /* IV Update initiated by us */
221 ivu_test:1, /* IV Update test mode */
240 /* Number of hours in current IV Update state */
243 /* Timer to track duration in current IV Update state */
H A Dnet.c42 /* Seq limit after IV Update is triggered */
561 /* Discard "old old" IV Index entries from RPL and flag in bt_mesh_rpl_reset()
622 /* We're currently in IV Update mode */ in bt_mesh_net_iv_update()
625 BT_WARN("IV Index mismatch: 0x%08x != 0x%08x", in bt_mesh_net_iv_update()
632 BT_DBG("Already in IV Update in Progress state"); in bt_mesh_net_iv_update()
639 BT_DBG("Same IV Index in normal mode"); in bt_mesh_net_iv_update()
645 BT_ERR("IV Index out of sync: 0x%08x != 0x%08x", in bt_mesh_net_iv_update()
651 BT_WARN("Performing IV Index Recovery"); in bt_mesh_net_iv_update()
672 BT_WARN("IV Update before minimum duration"); in bt_mesh_net_iv_update()
679 BT_WARN("IV Update deferred because of pending transfer"); in bt_mesh_net_iv_update()
[all …]
H A Dbeacon.c92 /* IV Index */ in bt_mesh_beacon_create()
99 BT_DBG("IV Index 0x%08x Auth %s", bt_mesh.iv_index, in bt_mesh_beacon_create()
329 /* Key Refresh without IV Update only impacts one subnet */ in secure_beacon_recv()
H A Dtesting.c100 console_printf("IV Index: %08lx\n", (long) bt_mesh.iv_index); in bt_test_print_credentials()
/nrf52832-nimble/packages/NimBLE-latest/nimble/controller/src/
H A Dble_ll_ctrl.c1024 console_printf("%02x", connsm->enc_data.iv[cnt]); in ble_ll_calc_session_key()
1184 * Controller generates master portion of SDK and IV.
1199 /* IV stored LSB to MSB, IVm is LSB, IVs is MSB */ in ble_ll_ctrl_enc_req_make()
1203 memcpy(connsm->enc_data.iv, dptr + 18, 4); in ble_ll_ctrl_enc_req_make()
1209 ble_ll_rand_data_get(connsm->enc_data.iv, 4); in ble_ll_ctrl_enc_req_make()
1210 memcpy(dptr + 18, connsm->enc_data.iv, 4); in ble_ll_ctrl_enc_req_make()
1240 memcpy(connsm->enc_data.iv + 4, dptr + 8, 4); in ble_ll_ctrl_rx_enc_rsp()
1286 memcpy(connsm->enc_data.iv, dptr + 18, 4); in ble_ll_ctrl_rx_enc_req()
1291 memcpy(connsm->enc_data.iv + 4, rspdata + 8, 4); in ble_ll_ctrl_rx_enc_req()
1296 memcpy(connsm->enc_data.iv, dptr + 18, 4); in ble_ll_ctrl_rx_enc_req()
[all …]
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/
H A Dsyscfg.yml128 When the IV Update state enters Normal operation or IV Update
422 This option removes the 96 hour limit of the IV Update
/nrf52832-nimble/rt-thread/libcpu/mips/loongson_1b/
H A Dstart_gcc.S112 /* 0x200 - Special Exception Interrupt handler (when IV is set in CP0_CAUSE) */
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/include/lwip/
H A Dip4_frag.h34 * Author: Jani Monoses <jani@iv.ro>
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/include/lwip/
H A Dip4_frag.h34 * Author: Jani Monoses <jani@iv.ro>
/nrf52832-nimble/rt-thread/libcpu/mips/xburst/
H A Dstart_gcc.S125 /* 0x200 - Special Exception Interrupt handler (when IV is set in CP0_CAUSE) */
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/include/ipv4/lwip/
H A Dip_frag.h29 * Author: Jani Monoses <jani@iv.ro>
/nrf52832-nimble/packages/NimBLE-latest/docs/mesh/
H A Dindex.rst59 …isioned device with provisioning data that allows it to become a mesh node (network key, current IV
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/apps/snmp/
H A Dsnmpv3_mbedtls.c143 /* Prepare IV */ in snmpv3_crypt()
184 * IV is the big endian concatenation of boots, in snmpv3_crypt()
H A Dsnmpv3.c97 * since it simply doesn't influence the effectiveness of an IV.
/nrf52832-nimble/packages/NimBLE-latest/nimble/drivers/nrf51/src/
H A Dble_phy.c188 uint8_t iv[8]; member
965 * @param iv
970 ble_phy_encrypt_enable(uint64_t pkt_counter, uint8_t *iv, uint8_t *key, in ble_phy_encrypt_enable() argument
975 memcpy(g_nrf_ccm_data.iv, iv, 8); in ble_phy_encrypt_enable()
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/apps/snmp/
H A Dsnmpv3.c97 * since it simply doesn't influence the effectiveness of an IV.
/nrf52832-nimble/packages/NimBLE-latest/nimble/drivers/native/src/
H A Dble_phy.c347 * @param iv
352 ble_phy_encrypt_enable(uint64_t pkt_counter, uint8_t *iv, uint8_t *key, in ble_phy_encrypt_enable() argument

12