Lines Matching refs:len
338 static LoRaMacCryptoStatus_t ComputeCmacB0( uint8_t* msg, uint16_t len, KeyIdentifier_t keyID, bool… in ComputeCmacB0() argument
344 if( len > CRYPTO_MAXMESSAGE_SIZE ) in ComputeCmacB0()
352 PrepareB0( len, keyID, isAck, dir, devAddr, fCnt, micBuff ); in ComputeCmacB0()
354 if( SecureElementComputeAesCmac( micBuff, msg, len, keyID, cmac ) != SECURE_ELEMENT_SUCCESS ) in ComputeCmacB0()
374 static LoRaMacCryptoStatus_t VerifyCmacB0( uint8_t* msg, uint16_t len, KeyIdentifier_t keyID, bool … in VerifyCmacB0() argument
380 if( len > CRYPTO_MAXMESSAGE_SIZE ) in VerifyCmacB0()
389 PrepareB0( len, keyID, isAck, dir, devAddr, fCnt, micBuff ); in VerifyCmacB0()
392 memcpy1( ( micBuff + MIC_BLOCK_BX_SIZE ), msg, len ); in VerifyCmacB0()
395 … retval = SecureElementVerifyAesCmac( micBuff, ( len + MIC_BLOCK_BX_SIZE ), expectedCmac, keyID ); in VerifyCmacB0()
482 static LoRaMacCryptoStatus_t ComputeCmacB1( uint8_t* msg, uint16_t len, KeyIdentifier_t keyID, bool… in ComputeCmacB1() argument
488 if( len > CRYPTO_MAXMESSAGE_SIZE ) in ComputeCmacB1()
496 PrepareB1( len, keyID, isAck, txDr, txCh, devAddr, fCntUp, micBuff ); in ComputeCmacB1()
498 if( SecureElementComputeAesCmac( micBuff, msg, len, keyID, cmac ) != SECURE_ELEMENT_SUCCESS ) in ComputeCmacB1()