Lines Matching refs:psaToOtError
22 static otError psaToOtError(psa_status_t aStatus) in psaToOtError() function
191 return psaToOtError(status); in otPlatCryptoImportKey()
201 return psaToOtError(psa_export_key(aKeyRef, aBuffer, aBufferLen, aKeyLen)); in otPlatCryptoExportKey()
206 return psaToOtError(psa_destroy_key(aKeyRef)); in otPlatCryptoDestroyKey()
244 return psaToOtError(psa_mac_abort(operation)); in otPlatCryptoHmacSha256Deinit()
259 return psaToOtError(status); in otPlatCryptoHmacSha256Start()
273 return psaToOtError(psa_mac_update(operation, (const uint8_t *)aBuf, aBufLength)); in otPlatCryptoHmacSha256Update()
287 return psaToOtError(psa_mac_sign_finish(operation, aBuf, aBufLength, &mac_length)); in otPlatCryptoHmacSha256Finish()
333 return psaToOtError(status); in otPlatCryptoAesEncrypt()
365 return psaToOtError(psa_hash_abort(operation)); in otPlatCryptoSha256Deinit()
378 return psaToOtError(psa_hash_setup(operation, PSA_ALG_SHA_256)); in otPlatCryptoSha256Start()
391 return psaToOtError(psa_hash_update(operation, (const uint8_t *)aBuf, aBufLength)); in otPlatCryptoSha256Update()
405 return psaToOtError(psa_hash_finish(operation, aHash, aHashSize, &hash_size)); in otPlatCryptoSha256Finish()
419 return psaToOtError(psa_generate_random(aBuffer, aSize)); in otPlatCryptoRandomGet()
452 return psaToOtError(status); in otPlatCryptoEcdsaGenerateKey()
485 return psaToOtError(status); in otPlatCryptoEcdsaSign()
524 return psaToOtError(status); in otPlatCryptoEcdsaVerify()
543 return psaToOtError(status); in otPlatCryptoEcdsaSignUsingKeyRef()
560 return psaToOtError(status); in otPlatCryptoEcdsaVerifyUsingKeyRef()
579 return psaToOtError(status); in otPlatCryptoEcdsaExportPublicKey()
603 return psaToOtError(status); in otPlatCryptoEcdsaGenerateAndImportKey()
665 return psaToOtError(status); in otPlatCryptoPbkdf2GenerateKey()