/nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/src/ |
H A D | crypto.c | 203 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 D | cfg_srv.c | 682 /* 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 D | health_srv.c | 221 /* 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 D | transport.c | 441 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 D | net.c | 801 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 D | syscfg.yml | 183 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 D | nrf_ccm.h | 251 * @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 D | ble_ll.h | 354 * -> MIC (0 or 4 bytes) 446 * Does not include MIC if encrypted.
|
H A D | ble_phy.h | 167 * an optional MIC. The maximum payload is 251 bytes.
|
/nrf52832-nimble/packages/NimBLE-latest/nimble/drivers/nrf51/src/ |
H A D | ble_phy.c | 609 /* 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 D | ble_phy.c | 978 /* 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 D | ble_ll_conn.c | 3662 * 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 D | ble_ll_ctrl.c | 219 * valid MIC and that will restart the authenticated payload timer
|
/nrf52832-nimble/nordic/nrfx/mdk/ |
H A D | nrf51_bitfields.h | 288 /* 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 D | nrf51.h | 889 …__IM uint32_t MICSTATUS; /*!< (@ 0x00000400) CCM RX MIC check result. …
|
H A D | nrf52810_bitfields.h | 586 /* 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 D | nrf52810.h | 1363 …__IM uint32_t MICSTATUS; /*!< (@ 0x00000400) MIC check result …
|
H A D | nrf52_bitfields.h | 988 /* 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 D | nrf51.svd | 10904 <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 D | nrf52.h | 1735 …__IM uint32_t MICSTATUS; /*!< (@ 0x00000400) MIC check result …
|
H A D | nrf52810.svd | 16951 <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 D | nrf52840.h | 2002 …__IM uint32_t MICSTATUS; /*!< (@ 0x00000400) MIC check result …
|
H A D | nrf52840_bitfields.h | 312 /* 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 D | nrf52.svd | 21484 <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 D | ble_hs_return_codes.rst | 347 … | BLE\_ERR\_CONN\_TERM\_MIC | Connection Terminated due to MIC Failure …
|