Home
last modified time | relevance | path

Searched full:mic (Results 1 – 25 of 26) sorted by relevance

12

/nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/src/
H A Dcrypto.c203 u8_t msg[16], pmsg[16], cmic[16], cmsg[16], Xn[16], mic[16]; in bt_mesh_ccm_decrypt() local
315 /* MIC = C_mic ^ X_1 */ in bt_mesh_ccm_decrypt()
316 for (i = 0; i < sizeof(mic); i++) { in bt_mesh_ccm_decrypt()
317 mic[i] = cmic[i] ^ Xn[i]; in bt_mesh_ccm_decrypt()
349 if (memcmp(mic, enc_msg + msg_len, mic_size)) { in bt_mesh_ccm_decrypt()
361 u8_t pmsg[16], cmic[16], cmsg[16], mic[16], Xn[16]; in bt_mesh_ccm_encrypt() local
461 /* MIC = C_mic ^ X_1 */ in bt_mesh_ccm_encrypt()
462 for (i = 0; i < sizeof(mic); i++) { in bt_mesh_ccm_encrypt()
463 mic[i] = cmic[i] ^ Xn[i]; in bt_mesh_ccm_encrypt()
511 memcpy(out_msg + msg_len, mic, mic_size); in bt_mesh_ccm_encrypt()
H A Dcfg_srv.c682 /* Needed size: opcode (2 bytes) + msg + MIC */ in beacon_get()
702 /* Needed size: opcode (2 bytes) + msg + MIC */ in beacon_set()
747 /* Needed size: opcode (2 bytes) + msg + MIC */ in default_ttl_get()
769 /* Needed size: opcode (2 bytes) + msg + MIC */ in default_ttl_set()
806 /* Needed size: opcode (2 bytes) + msg + MIC */ in send_gatt_proxy_status()
906 /* Needed size: opcode (2 bytes) + msg + MIC */ in net_transmit_get()
928 /* Needed size: opcode (2 bytes) + msg + MIC */ in net_transmit_set()
964 /* Needed size: opcode (2 bytes) + msg + MIC */ in relay_get()
987 /* Needed size: opcode (2 bytes) + msg + MIC */ in relay_set()
1047 /* Needed size: opcode (2 bytes) + msg + MIC */ in send_mod_pub_status()
[all …]
H A Dhealth_srv.c221 /* Needed size: opcode (2 bytes) + msg + MIC */ in send_attention_status()
276 /* Needed size: opcode (2 bytes) + msg + MIC */ in send_health_period_status()
H A Dtransport.c441 BT_ERR("Insufficient tailroom for Transport MIC"); in bt_mesh_trans_send()
586 BT_ERR("Too short SDU + MIC"); in sdu_recv()
604 /* Adjust the length to not contain the MIC at the end */ in sdu_recv()
1268 * payload (for 64bit Net MIC) or 12 bytes of payload (for 32bit in trans_seg()
1269 * Net MIC). in trans_seg()
H A Dnet.c801 BT_ERR("Insufficient MIC space for CTL PDU"); in bt_mesh_net_encode()
804 BT_ERR("Insufficient MIC space for PDU"); in bt_mesh_net_encode()
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/
H A Dsyscfg.yml183 which 4 or 8 bytes is used for the Transport Layer MIC). For
186 4-byte MIC and 52 bytes using an 8-byte MIC.
/nrf52832-nimble/nordic/nrfx/hal/
H A Dnrf_ccm.h251 * @brief Function for getting the MIC check result.
255 * @retval true If the MIC check passed.
256 * @retval false If the MIC check failed.
/nrf52832-nimble/packages/NimBLE-latest/nimble/controller/include/controller/
H A Dble_ll.h354 * -> MIC (0 or 4 bytes)
446 * Does not include MIC if encrypted.
H A Dble_phy.h167 * an optional MIC. The maximum payload is 251 bytes.
/nrf52832-nimble/packages/NimBLE-latest/nimble/drivers/nrf51/src/
H A Dble_phy.c609 /* Only set MIC failure flag if frame is not zero length */ in ble_phy_rx_end_isr()
616 * be a MIC failure but we should not hand it up. I guess in ble_phy_rx_end_isr()
/nrf52832-nimble/packages/NimBLE-latest/nimble/drivers/nrf52/src/
H A Dble_phy.c978 /* Only set MIC failure flag if frame is not zero length */ in ble_phy_rx_end_isr()
985 * be a MIC failure but we should not hand it up. I guess in ble_phy_rx_end_isr()
/nrf52832-nimble/packages/NimBLE-latest/nimble/controller/src/
H A Dble_ll_conn.c3662 * Reset authenticated payload timeout if valid MIC. NOTE: we dont in ble_ll_conn_rx_data_pdu()
3663 * check the MIC failure bit as that would have terminated the in ble_ll_conn_rx_data_pdu()
H A Dble_ll_ctrl.c219 * valid MIC and that will restart the authenticated payload timer
/nrf52832-nimble/nordic/nrfx/mdk/
H A Dnrf51_bitfields.h288 /* Description: CCM RX MIC check result. */
290 /* Bit 0 : Result of the MIC check performed during the previous CCM RX STARTCRYPT */
293 #define CCM_MICSTATUS_MICSTATUS_CheckFailed (0UL) /*!< MIC check failed. */
294 #define CCM_MICSTATUS_MICSTATUS_CheckPassed (1UL) /*!< MIC check passed. */
H A Dnrf51.h889 …__IM uint32_t MICSTATUS; /*!< (@ 0x00000400) CCM RX MIC check result. …
H A Dnrf52810_bitfields.h586 /* Description: MIC check result */
588 /* Bit 0 : The result of the MIC check performed during the previous decryption operation */
591 #define CCM_MICSTATUS_MICSTATUS_CheckFailed (0UL) /*!< MIC check failed */
592 #define CCM_MICSTATUS_MICSTATUS_CheckPassed (1UL) /*!< MIC check passed */
651 MIC generation and encryption/decryption. */
H A Dnrf52810.h1363 …__IM uint32_t MICSTATUS; /*!< (@ 0x00000400) MIC check result …
H A Dnrf52_bitfields.h988 /* Description: MIC check result */
990 /* Bit 0 : The result of the MIC check performed during the previous decryption operation */
993 #define CCM_MICSTATUS_MICSTATUS_CheckFailed (0UL) /*!< MIC check failed */
994 #define CCM_MICSTATUS_MICSTATUS_CheckPassed (1UL) /*!< MIC check passed */
1050 …scratch data area used for temporary storage during key-stream generation, MIC generation and encr…
H A Dnrf51.svd10904 <description>CCM RX MIC check result.</description>
10910 … <description>Result of the MIC check performed during the previous CCM RX STARTCRYPT</description>
10915 <description>MIC check failed.</description>
10920 <description>MIC check passed.</description>
H A Dnrf52.h1735 …__IM uint32_t MICSTATUS; /*!< (@ 0x00000400) MIC check result …
H A Dnrf52810.svd16951 <description>MIC check result</description>
16957 …<description>The result of the MIC check performed during the previous decryption operation</descr…
16963 <description>MIC check failed</description>
16968 <description>MIC check passed</description>
17125 MIC generation and encryption/decryption.</description>
H A Dnrf52840.h2002 …__IM uint32_t MICSTATUS; /*!< (@ 0x00000400) MIC check result …
H A Dnrf52840_bitfields.h312 /* Description: MIC check result */
314 /* Bit 0 : The result of the MIC check performed during the previous decryption operation */
317 #define CCM_MICSTATUS_MICSTATUS_CheckFailed (0UL) /*!< MIC check failed */
318 #define CCM_MICSTATUS_MICSTATUS_CheckPassed (1UL) /*!< MIC check passed */
377 MIC generation and encryption/decryption. */
H A Dnrf52.svd21484 <description>MIC check result</description>
21490 …<description>The result of the MIC check performed during the previous decryption operation</descr…
21496 <description>MIC check failed</description>
21501 <description>MIC check passed</description>
21647 …scratch data area used for temporary storage during key-stream generation, MIC generation and encr…
/nrf52832-nimble/packages/NimBLE-latest/docs/ble_hs/
H A Dble_hs_return_codes.rst347 … | BLE\_ERR\_CONN\_TERM\_MIC | Connection Terminated due to MIC Failure …

12