John Durkop | 2c61835 | 2020-09-22 06:54:01 -0700 | [diff] [blame] | 1 | /* |
| 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 Durkop | 2c61835 | 2020-09-22 06:54:01 -0700 | [diff] [blame] | 28 | |
| 29 | #include "test/drivers/size.h" |
| 30 | |
John Durkop | 2c61835 | 2020-09-22 06:54:01 -0700 | [diff] [blame] | 31 | #ifdef TEST_KEY_CONTEXT_SIZE_FUNCTION |
| 32 | size_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 */ |