Searched refs:retval (Results 1 – 3 of 3) sorted by relevance
/loramac-node-3.4.0/src/mac/ |
D | LoRaMacCrypto.c | 394 SecureElementStatus_t retval = SECURE_ELEMENT_ERROR; in VerifyCmacB0() local 395 … retval = SecureElementVerifyAesCmac( micBuff, ( len + MIC_BLOCK_BX_SIZE ), expectedCmac, keyID ); in VerifyCmacB0() 397 if( retval == SECURE_ELEMENT_SUCCESS ) in VerifyCmacB0() 401 else if( retval == SECURE_ELEMENT_FAIL_CMAC ) in VerifyCmacB0() 1122 LoRaMacCryptoStatus_t retval = LORAMAC_CRYPTO_ERROR; in LoRaMacCryptoHandleJoinAccept() local 1194 retval = LoRaMacCryptoDeriveMcRootKey( versionMinor, APP_KEY ); in LoRaMacCryptoHandleJoinAccept() 1195 if( retval != LORAMAC_CRYPTO_SUCCESS ) in LoRaMacCryptoHandleJoinAccept() 1197 return retval; in LoRaMacCryptoHandleJoinAccept() 1200 retval = LoRaMacCryptoDeriveMcKEKey( MC_ROOT_KEY ); in LoRaMacCryptoHandleJoinAccept() 1201 if( retval != LORAMAC_CRYPTO_SUCCESS ) in LoRaMacCryptoHandleJoinAccept() [all …]
|
/loramac-node-3.4.0/src/peripherals/soft-se/ |
D | soft-se.c | 92 SecureElementStatus_t retval = GetKeyByID( keyID, &keyItem ); in ComputeCmac() local 94 if( retval == SECURE_ELEMENT_SUCCESS ) in ComputeCmac() 112 return retval; in ComputeCmac() 178 SecureElementStatus_t retval = SECURE_ELEMENT_ERROR; in SecureElementSetKey() local 181 retval = SecureElementAesEncrypt( key, 16, MC_KE_KEY, decryptedKey ); in SecureElementSetKey() 184 return retval; in SecureElementSetKey() 217 SecureElementStatus_t retval = SECURE_ELEMENT_ERROR; in SecureElementVerifyAesCmac() local 219 retval = ComputeCmac( NULL, buffer, size, keyID, &compCmac ); in SecureElementVerifyAesCmac() 220 if( retval != SECURE_ELEMENT_SUCCESS ) in SecureElementVerifyAesCmac() 222 return retval; in SecureElementVerifyAesCmac() [all …]
|
/loramac-node-3.4.0/src/peripherals/atecc608a-tnglora-se/ |
D | atecc608a-tnglora-se.c | 218 SecureElementStatus_t retval = GetKeyByID( keyID, &keyItem ); in ComputeCmac() local 219 if( retval != SECURE_ELEMENT_SUCCESS ) in ComputeCmac() 221 return retval; in ComputeCmac() 331 SecureElementStatus_t retval = SECURE_ELEMENT_ERROR; in SecureElementVerifyAesCmac() local 334 retval = ComputeCmac( NULL, buffer, size, keyID, &compCmac ); in SecureElementVerifyAesCmac() 335 if( retval != SECURE_ELEMENT_SUCCESS ) in SecureElementVerifyAesCmac() 337 return retval; in SecureElementVerifyAesCmac() 342 retval = SECURE_ELEMENT_FAIL_CMAC; in SecureElementVerifyAesCmac() 345 return retval; in SecureElementVerifyAesCmac() 363 SecureElementStatus_t retval = GetKeyByID( keyID, &pItem ); in SecureElementAesEncrypt() local [all …]
|