blob: 42b14b92c6d2878b798a3d44bdf71638c66e469d [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 Cooremancd84cb42020-07-16 20:28:36 +02004 */
Steven Cooreman2c7b2f82020-09-02 13:43:46 +02005/* Copyright The Mbed TLS Contributors
Steven Cooremancd84cb42020-07-16 20:28:36 +02006 * SPDX-License-Identifier: Apache-2.0
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License"); you may
9 * not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
Steven Cooremancd84cb42020-07-16 20:28:36 +020019 */
20
21#ifndef PSA_CRYPTO_DRIVER_WRAPPERS_H
22#define PSA_CRYPTO_DRIVER_WRAPPERS_H
23
24#include "psa/crypto.h"
25#include "psa/crypto_driver_common.h"
26
Gilles Peskineefaee9a2023-09-20 20:49:47 +020027#if defined(MBEDTLS_PSA_P256M_DRIVER_ENABLED)
Aditya Deshpandee41f7e42023-01-12 16:29:02 +000028#include "../3rdparty/p256-m/p256-m_driver_entrypoints.h"
Gilles Peskineefaee9a2023-09-20 20:49:47 +020029#endif /* MBEDTLS_PSA_P256M_DRIVER_ENABLED */
Aditya Deshpandee41f7e42023-01-12 16:29:02 +000030
Ronald Cron67227982020-11-26 15:16:05 +010031
Xiaokang Qian077ffc02023-08-08 03:41:07 +000032psa_status_t psa_driver_wrapper_export_public_key(
Ronald Cron84cc9942020-11-25 14:30:05 +010033 const psa_key_attributes_t *attributes,
34 const uint8_t *key_buffer, size_t key_buffer_size,
Gilles Peskine449bd832023-01-11 14:50:10 +010035 uint8_t *data, size_t data_size, size_t *data_length);
Ronald Cron84cc9942020-11-25 14:30:05 +010036
Neil Armstrong7da8c562022-06-01 18:17:22 +020037
Steven Cooremancd84cb42020-07-16 20:28:36 +020038#endif /* PSA_CRYPTO_DRIVER_WRAPPERS_H */
39
40/* End of automatically generated file. */