Home
last modified time | relevance | path

Searched refs:decJoinAccept (Results 1 – 5 of 5) sorted by relevance

/loramac-node-3.7.0/src/peripherals/soft-se/
Dsoft-se.c308 … uint8_t encJoinAcceptSize, uint8_t* decJoinAccept, in SecureElementProcessJoinAccept() argument
311 if( ( encJoinAccept == NULL ) || ( decJoinAccept == NULL ) || ( versionMinor == NULL ) ) in SecureElementProcessJoinAccept()
330 memcpy1( decJoinAccept, encJoinAccept, encJoinAcceptSize ); in SecureElementProcessJoinAccept()
334 … encKeyID, decJoinAccept + LORAMAC_MHDR_FIELD_SIZE ) != SECURE_ELEMENT_SUCCESS ) in SecureElementProcessJoinAccept()
339 *versionMinor = ( ( decJoinAccept[11] & 0x80 ) == 0x80 ) ? 1 : 0; in SecureElementProcessJoinAccept()
343 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()
[all …]
/loramac-node-3.7.0/src/peripherals/atecc608a-tnglora-se/
Datecc608a-tnglora-se.c437 … uint8_t encJoinAcceptSize, uint8_t* decJoinAccept, in SecureElementProcessJoinAccept() argument
440 if( ( encJoinAccept == NULL ) || ( decJoinAccept == NULL ) || ( versionMinor == NULL ) ) in SecureElementProcessJoinAccept()
459 memcpy1( decJoinAccept, encJoinAccept, encJoinAcceptSize ); in SecureElementProcessJoinAccept()
463 … encKeyID, decJoinAccept + LORAMAC_MHDR_FIELD_SIZE ) != SECURE_ELEMENT_SUCCESS ) in SecureElementProcessJoinAccept()
468 *versionMinor = ( ( decJoinAccept[11] & 0x80 ) == 0x80 ) ? 1 : 0; in SecureElementProcessJoinAccept()
472 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()
[all …]
/loramac-node-3.7.0/src/peripherals/lr1110-se/
Dlr1110-se.c243 … uint8_t encJoinAcceptSize, uint8_t* decJoinAccept, in SecureElementProcessJoinAccept() argument
248 if( ( encJoinAccept == NULL ) || ( decJoinAccept == NULL ) || ( versionMinor == NULL ) ) in SecureElementProcessJoinAccept()
279 encJoinAccept + 1, encJoinAcceptSize - 1, decJoinAccept + 1 ); in SecureElementProcessJoinAccept()
283 *versionMinor = ( ( decJoinAccept[11] & 0x80 ) == 0x80 ) ? 1 : 0; in SecureElementProcessJoinAccept()
311 encJoinAccept + 1, encJoinAcceptSize - 1, decJoinAccept + 1 ); in SecureElementProcessJoinAccept()
315 *versionMinor = ( ( decJoinAccept[11] & 0x80 ) == 0x80 ) ? 1 : 0; in SecureElementProcessJoinAccept()
/loramac-node-3.7.0/src/mac/
Dsecure-element.h164 … uint8_t encJoinAcceptSize, uint8_t* decJoinAccept,
DLoRaMacCrypto.c1123 uint8_t decJoinAccept[LORAMAC_JOIN_ACCEPT_FRAME_MAX_SIZE] = { 0 }; in LoRaMacCryptoHandleJoinAccept() local
1152 macMsg->BufSize, decJoinAccept, in LoRaMacCryptoHandleJoinAccept()
1158 memcpy1( macMsg->Buffer, decJoinAccept, macMsg->BufSize ); in LoRaMacCryptoHandleJoinAccept()