Lines Matching refs:aKeyRef
128 otError otPlatCryptoImportKey(otCryptoKeyRef *aKeyRef, otCryptoKeyType aKeyType, in otPlatCryptoImportKey() argument
143 if (aKeyRef == NULL || aKey == NULL || !checkKeyUsage(aKeyUsage)) { in otPlatCryptoImportKey()
181 psa_set_key_id(&attributes, *aKeyRef); in otPlatCryptoImportKey()
188 status = psa_import_key(&attributes, aKey, aKeyLen, aKeyRef); in otPlatCryptoImportKey()
194 otError otPlatCryptoExportKey(otCryptoKeyRef aKeyRef, uint8_t *aBuffer, size_t aBufferLen, in otPlatCryptoExportKey() argument
201 return psaToOtError(psa_export_key(aKeyRef, aBuffer, aBufferLen, aKeyLen)); in otPlatCryptoExportKey()
204 otError otPlatCryptoDestroyKey(otCryptoKeyRef aKeyRef) in otPlatCryptoDestroyKey() argument
206 return psaToOtError(psa_destroy_key(aKeyRef)); in otPlatCryptoDestroyKey()
209 bool otPlatCryptoHasKey(otCryptoKeyRef aKeyRef) in otPlatCryptoHasKey() argument
214 status = psa_get_key_attributes(aKeyRef, &attributes); in otPlatCryptoHasKey()
527 otError otPlatCryptoEcdsaSignUsingKeyRef(otCryptoKeyRef aKeyRef, in otPlatCryptoEcdsaSignUsingKeyRef() argument
534 status = psa_sign_hash(aKeyRef, PSA_ALG_DETERMINISTIC_ECDSA(PSA_ALG_SHA_256), aHash->m8, in otPlatCryptoEcdsaSignUsingKeyRef()
546 otError otPlatCryptoEcdsaVerifyUsingKeyRef(otCryptoKeyRef aKeyRef, in otPlatCryptoEcdsaVerifyUsingKeyRef() argument
552 status = psa_verify_hash(aKeyRef, PSA_ALG_DETERMINISTIC_ECDSA(PSA_ALG_SHA_256), aHash->m8, in otPlatCryptoEcdsaVerifyUsingKeyRef()
563 otError otPlatCryptoEcdsaExportPublicKey(otCryptoKeyRef aKeyRef, in otPlatCryptoEcdsaExportPublicKey() argument
570 status = psa_export_public_key(aKeyRef, buffer, sizeof(buffer), &exported_length); in otPlatCryptoEcdsaExportPublicKey()
582 otError otPlatCryptoEcdsaGenerateAndImportKey(otCryptoKeyRef aKeyRef) in otPlatCryptoEcdsaGenerateAndImportKey() argument
586 psa_key_id_t key_id = (psa_key_id_t)aKeyRef; in otPlatCryptoEcdsaGenerateAndImportKey()