Lines Matching refs:aKey
130 otCryptoKeyStorage aKeyPersistence, const uint8_t *aKey, in otPlatCryptoImportKey() argument
136 unsigned char *p = (unsigned char *)aKey; in otPlatCryptoImportKey()
143 if (aKeyRef == NULL || aKey == NULL || !checkKeyUsage(aKeyUsage)) { in otPlatCryptoImportKey()
169 aKey = p; in otPlatCryptoImportKey()
188 status = psa_import_key(&attributes, aKey, aKeyLen, aKeyRef); in otPlatCryptoImportKey()
247 otError otPlatCryptoHmacSha256Start(otCryptoContext *aContext, const otCryptoKey *aKey) in otPlatCryptoHmacSha256Start() argument
252 if (aKey == NULL || !checkContext(aContext, sizeof(psa_mac_operation_t))) { in otPlatCryptoHmacSha256Start()
257 status = psa_mac_sign_setup(operation, aKey->mKeyRef, PSA_ALG_HMAC(PSA_ALG_SHA_256)); in otPlatCryptoHmacSha256Start()
304 otError otPlatCryptoAesSetKey(otCryptoContext *aContext, const otCryptoKey *aKey) in otPlatCryptoAesSetKey() argument
308 if (aKey == NULL || !checkContext(aContext, sizeof(psa_key_id_t))) { in otPlatCryptoAesSetKey()
313 *key_ref = aKey->mKeyRef; in otPlatCryptoAesSetKey()
612 uint8_t *aKey) in otPlatCryptoPbkdf2GenerateKey() argument
654 status = psa_key_derivation_output_bytes(&operation, aKey, aKeyLen); in otPlatCryptoPbkdf2GenerateKey()