Lines Matching refs:operation

222 	psa_mac_operation_t *operation;  in otPlatCryptoHmacSha256Init()  local
228 operation = aContext->mContext; in otPlatCryptoHmacSha256Init()
229 *operation = psa_mac_operation_init(); in otPlatCryptoHmacSha256Init()
236 psa_mac_operation_t *operation; in otPlatCryptoHmacSha256Deinit() local
242 operation = aContext->mContext; in otPlatCryptoHmacSha256Deinit()
244 return psaToOtError(psa_mac_abort(operation)); in otPlatCryptoHmacSha256Deinit()
249 psa_mac_operation_t *operation; in otPlatCryptoHmacSha256Start() local
256 operation = aContext->mContext; in otPlatCryptoHmacSha256Start()
257 status = psa_mac_sign_setup(operation, aKey->mKeyRef, PSA_ALG_HMAC(PSA_ALG_SHA_256)); in otPlatCryptoHmacSha256Start()
265 psa_mac_operation_t *operation; in otPlatCryptoHmacSha256Update() local
271 operation = aContext->mContext; in otPlatCryptoHmacSha256Update()
273 return psaToOtError(psa_mac_update(operation, (const uint8_t *)aBuf, aBufLength)); in otPlatCryptoHmacSha256Update()
278 psa_mac_operation_t *operation; in otPlatCryptoHmacSha256Finish() local
285 operation = aContext->mContext; in otPlatCryptoHmacSha256Finish()
287 return psaToOtError(psa_mac_sign_finish(operation, aBuf, aBufLength, &mac_length)); in otPlatCryptoHmacSha256Finish()
343 psa_hash_operation_t *operation; in otPlatCryptoSha256Init() local
349 operation = aContext->mContext; in otPlatCryptoSha256Init()
350 *operation = psa_hash_operation_init(); in otPlatCryptoSha256Init()
357 psa_hash_operation_t *operation; in otPlatCryptoSha256Deinit() local
363 operation = aContext->mContext; in otPlatCryptoSha256Deinit()
365 return psaToOtError(psa_hash_abort(operation)); in otPlatCryptoSha256Deinit()
370 psa_hash_operation_t *operation; in otPlatCryptoSha256Start() local
376 operation = aContext->mContext; in otPlatCryptoSha256Start()
378 return psaToOtError(psa_hash_setup(operation, PSA_ALG_SHA_256)); in otPlatCryptoSha256Start()
383 psa_hash_operation_t *operation; in otPlatCryptoSha256Update() local
389 operation = aContext->mContext; in otPlatCryptoSha256Update()
391 return psaToOtError(psa_hash_update(operation, (const uint8_t *)aBuf, aBufLength)); in otPlatCryptoSha256Update()
396 psa_hash_operation_t *operation; in otPlatCryptoSha256Finish() local
403 operation = aContext->mContext; in otPlatCryptoSha256Finish()
405 return psaToOtError(psa_hash_finish(operation, aHash, aHashSize, &hash_size)); in otPlatCryptoSha256Finish()
618 psa_key_derivation_operation_t operation = PSA_KEY_DERIVATION_OPERATION_INIT; in otPlatCryptoPbkdf2GenerateKey() local
631 status = psa_key_derivation_setup(&operation, algorithm); in otPlatCryptoPbkdf2GenerateKey()
636 status = psa_key_derivation_input_integer(&operation, PSA_KEY_DERIVATION_INPUT_COST, in otPlatCryptoPbkdf2GenerateKey()
642 status = psa_key_derivation_input_bytes(&operation, PSA_KEY_DERIVATION_INPUT_SALT, in otPlatCryptoPbkdf2GenerateKey()
648 status = psa_key_derivation_input_key(&operation, PSA_KEY_DERIVATION_INPUT_PASSWORD, in otPlatCryptoPbkdf2GenerateKey()
654 status = psa_key_derivation_output_bytes(&operation, aKey, aKeyLen); in otPlatCryptoPbkdf2GenerateKey()
661 psa_key_derivation_abort(&operation); in otPlatCryptoPbkdf2GenerateKey()