blob: 6ab2d90198341d009ca948c8eb028e323f950292 [file] [log] [blame]
Steven Cooremancd84cb42020-07-16 20:28:36 +02001/*
2 * Function signatures for functionality that can be provided by
3 * cryptographic accelerators.
4 * Warning: auto-generated file.
5 */
6/* Copyright (C) 2020, ARM Limited, All Rights Reserved
7 * SPDX-License-Identifier: Apache-2.0
8 *
9 * Licensed under the Apache License, Version 2.0 (the "License"); you may
10 * not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
17 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 *
21 * This file is part of mbed TLS (https://tls.mbed.org)
22 */
23
24#ifndef PSA_CRYPTO_DRIVER_WRAPPERS_H
25#define PSA_CRYPTO_DRIVER_WRAPPERS_H
26
27#include "psa/crypto.h"
28#include "psa/crypto_driver_common.h"
29
30psa_status_t psa_driver_wrapper_sign_hash( psa_key_slot_t *slot,
31 psa_algorithm_t alg,
32 const uint8_t *hash,
33 size_t hash_length,
34 uint8_t *signature,
35 size_t signature_size,
36 size_t *signature_length );
37
Steven Cooreman55ae2172020-07-17 19:46:15 +020038psa_status_t psa_driver_wrapper_verify_hash( psa_key_slot_t *slot,
39 psa_algorithm_t alg,
40 const uint8_t *hash,
41 size_t hash_length,
42 const uint8_t *signature,
43 size_t signature_length );
44
45psa_status_t psa_driver_wrapper_generate_key( const psa_key_attributes_t *attributes,
46 psa_key_slot_t *slot );
47
Steven Cooremancd84cb42020-07-16 20:28:36 +020048#endif /* PSA_CRYPTO_DRIVER_WRAPPERS_H */
49
50/* End of automatically generated file. */