1 /*
2  * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <psa/crypto.h>
8 #include "psa_crypto_client.h"
9 #include "crypto_caller_selector.h"
10 
11 
psa_verify_hash(psa_key_id_t id,psa_algorithm_t alg,const uint8_t * hash,size_t hash_length,const uint8_t * signature,size_t signature_length)12 psa_status_t psa_verify_hash(psa_key_id_t id, psa_algorithm_t alg,
13 	const uint8_t *hash, size_t hash_length,
14 	const uint8_t *signature, size_t signature_length)
15 {
16 	if (psa_crypto_client_instance.init_status != PSA_SUCCESS)
17 		return psa_crypto_client_instance.init_status;
18 
19 	return crypto_caller_verify_hash(&psa_crypto_client_instance.base,
20 		id, alg,
21 		hash, hash_length,
22 		signature, signature_length);
23 }
24