blob: 16a86922a61acc9de2c46fad2b02979631590454 [file] [log] [blame]
John Durkop2c618352020-09-22 06:54:01 -07001/*
2 * Test driver for retrieving key context size.
3 * Only used by opaque drivers.
4 */
5/* Copyright The Mbed TLS Contributors
6 * 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.
19 */
20
21#if !defined(MBEDTLS_CONFIG_FILE)
22#include "mbedtls/config.h"
23#else
24#include MBEDTLS_CONFIG_FILE
25#endif
26
27#if defined(MBEDTLS_PSA_CRYPTO_DRIVERS) && defined(PSA_CRYPTO_DRIVER_TEST)
John Durkop2c618352020-09-22 06:54:01 -070028
29#include "test/drivers/size.h"
30
John Durkop2c618352020-09-22 06:54:01 -070031#ifdef TEST_KEY_CONTEXT_SIZE_FUNCTION
32size_t test_size_function(
33 const psa_key_type_t key_type,
34 const size_t key_bits )
35{
36 (void) key_type;
37 (void) key_bits;
38 return 0;
39}
40#endif /*TEST_KEY_CONTEXT_SIZE_FUNCTION */
41
42#endif /* MBEDTLS_PSA_CRYPTO_DRIVERS && PSA_CRYPTO_DRIVER_TEST */