blob: 42993792a6adde219454be98eda359c189b25bcc [file] [log] [blame]
Steven Cooremancd84cb42020-07-16 20:28:36 +02001/*
2 * Function signatures for functionality that can be provided by
3 * cryptographic accelerators.
Steven Cooreman56250fd2020-09-04 13:07:15 +02004 * Warning: This file will be auto-generated in the future.
Steven Cooremancd84cb42020-07-16 20:28:36 +02005 */
Steven Cooreman2c7b2f82020-09-02 13:43:46 +02006/* Copyright The Mbed TLS Contributors
Steven Cooremancd84cb42020-07-16 20:28:36 +02007 * 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.
Steven Cooremancd84cb42020-07-16 20:28:36 +020020 */
21
22#ifndef PSA_CRYPTO_DRIVER_WRAPPERS_H
23#define PSA_CRYPTO_DRIVER_WRAPPERS_H
24
25#include "psa/crypto.h"
26#include "psa/crypto_driver_common.h"
27
28psa_status_t psa_driver_wrapper_sign_hash( psa_key_slot_t *slot,
29 psa_algorithm_t alg,
30 const uint8_t *hash,
31 size_t hash_length,
32 uint8_t *signature,
33 size_t signature_size,
34 size_t *signature_length );
35
Steven Cooreman55ae2172020-07-17 19:46:15 +020036psa_status_t psa_driver_wrapper_verify_hash( psa_key_slot_t *slot,
37 psa_algorithm_t alg,
38 const uint8_t *hash,
39 size_t hash_length,
40 const uint8_t *signature,
41 size_t signature_length );
42
43psa_status_t psa_driver_wrapper_generate_key( const psa_key_attributes_t *attributes,
44 psa_key_slot_t *slot );
45
Steven Cooremancd84cb42020-07-16 20:28:36 +020046#endif /* PSA_CRYPTO_DRIVER_WRAPPERS_H */
47
48/* End of automatically generated file. */