Lines Matching refs:key_id
427 psa_key_id_t key_id = 0; in otPlatCryptoEcdsaGenerateKey() local
436 status = psa_generate_key(&attributes, &key_id); in otPlatCryptoEcdsaGenerateKey()
441 status = psa_export_key(key_id, aKeyPair->mDerBytes, OT_CRYPTO_ECDSA_MAX_DER_SIZE, in otPlatCryptoEcdsaGenerateKey()
450 psa_destroy_key(key_id); in otPlatCryptoEcdsaGenerateKey()
460 psa_key_id_t key_id; in otPlatCryptoEcdsaSign() local
469 status = psa_import_key(&attributes, aKeyPair->mDerBytes, aKeyPair->mDerLength, &key_id); in otPlatCryptoEcdsaSign()
474 status = psa_sign_hash(key_id, PSA_ALG_DETERMINISTIC_ECDSA(PSA_ALG_SHA_256), aHash->m8, in otPlatCryptoEcdsaSign()
483 psa_destroy_key(key_id); in otPlatCryptoEcdsaSign()
493 psa_key_id_t key_id; in otPlatCryptoEcdsaVerify() local
508 status = psa_import_key(&attributes, buffer, sizeof(buffer), &key_id); in otPlatCryptoEcdsaVerify()
513 status = psa_verify_hash(key_id, PSA_ALG_DETERMINISTIC_ECDSA(PSA_ALG_SHA_256), aHash->m8, in otPlatCryptoEcdsaVerify()
522 psa_destroy_key(key_id); in otPlatCryptoEcdsaVerify()
586 psa_key_id_t key_id = (psa_key_id_t)aKeyRef; in otPlatCryptoEcdsaGenerateAndImportKey() local
592 psa_set_key_id(&attributes, key_id); in otPlatCryptoEcdsaGenerateAndImportKey()
595 status = psa_generate_key(&attributes, &key_id); in otPlatCryptoEcdsaGenerateAndImportKey()
615 psa_key_id_t key_id = PSA_KEY_ID_NULL; in otPlatCryptoPbkdf2GenerateKey() local
626 status = psa_import_key(&attributes, aPassword, aPasswordLen, &key_id); in otPlatCryptoPbkdf2GenerateKey()
649 key_id); in otPlatCryptoPbkdf2GenerateKey()
662 psa_destroy_key(key_id); in otPlatCryptoPbkdf2GenerateKey()