2020-09-22 15:54:01 +02:00
|
|
|
/*
|
|
|
|
* Test driver for retrieving key context size.
|
|
|
|
* Only used by opaque drivers.
|
|
|
|
*/
|
|
|
|
/* Copyright The Mbed TLS Contributors
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
* not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if !defined(MBEDTLS_CONFIG_FILE)
|
|
|
|
#include "mbedtls/config.h"
|
|
|
|
#else
|
|
|
|
#include MBEDTLS_CONFIG_FILE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(MBEDTLS_PSA_CRYPTO_DRIVERS) && defined(PSA_CRYPTO_DRIVER_TEST)
|
|
|
|
|
|
|
|
#include "test/drivers/size.h"
|
|
|
|
|
2021-04-13 12:41:34 +02:00
|
|
|
#ifdef MBEDTLS_TEST_KEY_CONTEXT_SIZE_FUNCTION
|
|
|
|
size_t mbedtls_test_size_function(
|
2020-09-22 15:54:01 +02:00
|
|
|
const psa_key_type_t key_type,
|
|
|
|
const size_t key_bits )
|
|
|
|
{
|
|
|
|
(void) key_type;
|
|
|
|
(void) key_bits;
|
|
|
|
return 0;
|
|
|
|
}
|
2021-04-13 12:41:34 +02:00
|
|
|
#endif /*MBEDTLS_TEST_KEY_CONTEXT_SIZE_FUNCTION */
|
2020-09-22 15:54:01 +02:00
|
|
|
|
|
|
|
#endif /* MBEDTLS_PSA_CRYPTO_DRIVERS && PSA_CRYPTO_DRIVER_TEST */
|