Home
last modified time | relevance | path

Searched refs:LORAMAC_MIC_FIELD_SIZE (Results 1 – 6 of 6) sorted by relevance

/loramac-node-latest/src/mac/
DLoRaMacHeaderTypes.h105 #define LORAMAC_MIC_FIELD_SIZE 4 macro
114 LORAMAC_MIC_FIELD_SIZE )
124 LORAMAC_MIC_FIELD_SIZE )
134 LORAMAC_MIC_FIELD_SIZE )
144 LORAMAC_MIC_FIELD_SIZE )
154 LORAMAC_CF_LIST_FIELD_SIZE + LORAMAC_MIC_FIELD_SIZE )
175 LORAMAC_F_PORT_FIELD_SIZE + LORAMAC_MIC_FIELD_SIZE )
184 LORAMAC_MIC_FIELD_SIZE )
193 LORAMAC_MIC_FIELD_SIZE )
DLoRaMacParser.c50 if( ( macMsg->BufSize - LORAMAC_MIC_FIELD_SIZE - bufItr ) == LORAMAC_CF_LIST_FIELD_SIZE ) in LoRaMacParserJoinAccept()
55 else if( ( macMsg->BufSize - LORAMAC_MIC_FIELD_SIZE - bufItr ) > 0 ) in LoRaMacParserJoinAccept()
96 if( ( macMsg->BufSize - bufItr - LORAMAC_MIC_FIELD_SIZE ) > 0 ) in LoRaMacParserData()
100 macMsg->FRMPayloadSize = ( macMsg->BufSize - bufItr - LORAMAC_MIC_FIELD_SIZE ); in LoRaMacParserData()
105 macMsg->MIC = ( uint32_t ) macMsg->Buffer[( macMsg->BufSize - LORAMAC_MIC_FIELD_SIZE )]; in LoRaMacParserData()
106 …macMsg->MIC |= ( ( uint32_t ) macMsg->Buffer[( macMsg->BufSize - LORAMAC_MIC_FIELD_SIZE ) + 1] << … in LoRaMacParserData()
107 …macMsg->MIC |= ( ( uint32_t ) macMsg->Buffer[( macMsg->BufSize - LORAMAC_MIC_FIELD_SIZE ) + 2] << … in LoRaMacParserData()
108 …macMsg->MIC |= ( ( uint32_t ) macMsg->Buffer[( macMsg->BufSize - LORAMAC_MIC_FIELD_SIZE ) + 3] << … in LoRaMacParserData()
DLoRaMacCrypto.c1017 …puteAesCmac( NULL, macMsg->Buffer, ( LORAMAC_JOIN_REQ_MSG_SIZE - LORAMAC_MIC_FIELD_SIZE ), micComp… in LoRaMacCryptoPrepareJoinRequest()
1053 …uteAesCmac( NULL, macMsg->Buffer, ( LORAMAC_RE_JOIN_1_MSG_SIZE - LORAMAC_MIC_FIELD_SIZE ), J_S_INT… in LoRaMacCryptoPrepareReJoinType1()
1095 …eAesCmac( NULL, macMsg->Buffer, ( LORAMAC_RE_JOIN_0_2_MSG_SIZE - LORAMAC_MIC_FIELD_SIZE ), S_NWK_S… in LoRaMacCryptoPrepareReJoinType0or2()
1344 …retval = ComputeCmacB1( macMsg->Buffer, ( macMsg->BufSize - LORAMAC_MIC_FIELD_SIZE ), S_NWK_S_INT_… in LoRaMacCryptoSecureMessage()
1350 …retval = ComputeCmacB0( macMsg->Buffer, ( macMsg->BufSize - LORAMAC_MIC_FIELD_SIZE ), F_NWK_S_INT_… in LoRaMacCryptoSecureMessage()
1363 …retval = ComputeCmacB0( macMsg->Buffer, ( macMsg->BufSize - LORAMAC_MIC_FIELD_SIZE ), NWK_S_ENC_KE… in LoRaMacCryptoSecureMessage()
1429 …retval = VerifyCmacB0( macMsg->Buffer, ( macMsg->BufSize - LORAMAC_MIC_FIELD_SIZE ), micComputatio… in LoRaMacCryptoUnsecureMessage()
DLoRaMacSerializer.c157 computedBufSize += LORAMAC_MIC_FIELD_SIZE; in LoRaMacSerializerData()
/loramac-node-latest/src/peripherals/soft-se/
Dsoft-se.c343 mic = ( ( uint32_t ) decJoinAccept[encJoinAcceptSize - LORAMAC_MIC_FIELD_SIZE] << 0 ); in SecureElementProcessJoinAccept()
344 mic |= ( ( uint32_t ) decJoinAccept[encJoinAcceptSize - LORAMAC_MIC_FIELD_SIZE + 1] << 8 ); in SecureElementProcessJoinAccept()
345 mic |= ( ( uint32_t ) decJoinAccept[encJoinAcceptSize - LORAMAC_MIC_FIELD_SIZE + 2] << 16 ); in SecureElementProcessJoinAccept()
346 mic |= ( ( uint32_t ) decJoinAccept[encJoinAcceptSize - LORAMAC_MIC_FIELD_SIZE + 3] << 24 ); in SecureElementProcessJoinAccept()
358 …if( SecureElementVerifyAesCmac( decJoinAccept, ( encJoinAcceptSize - LORAMAC_MIC_FIELD_SIZE ), mic… in SecureElementProcessJoinAccept()
389 LORAMAC_MHDR_FIELD_SIZE - LORAMAC_MIC_FIELD_SIZE, in SecureElementProcessJoinAccept()
/loramac-node-latest/src/peripherals/atecc608a-tnglora-se/
Datecc608a-tnglora-se.c472 mic = ( ( uint32_t ) decJoinAccept[encJoinAcceptSize - LORAMAC_MIC_FIELD_SIZE] << 0 ); in SecureElementProcessJoinAccept()
473 mic |= ( ( uint32_t ) decJoinAccept[encJoinAcceptSize - LORAMAC_MIC_FIELD_SIZE + 1] << 8 ); in SecureElementProcessJoinAccept()
474 mic |= ( ( uint32_t ) decJoinAccept[encJoinAcceptSize - LORAMAC_MIC_FIELD_SIZE + 2] << 16 ); in SecureElementProcessJoinAccept()
475 mic |= ( ( uint32_t ) decJoinAccept[encJoinAcceptSize - LORAMAC_MIC_FIELD_SIZE + 3] << 24 ); in SecureElementProcessJoinAccept()
487 …if( SecureElementVerifyAesCmac( decJoinAccept, ( encJoinAcceptSize - LORAMAC_MIC_FIELD_SIZE ), mic… in SecureElementProcessJoinAccept()
518 LORAMAC_MHDR_FIELD_SIZE - LORAMAC_MIC_FIELD_SIZE, in SecureElementProcessJoinAccept()