mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 19:21:09 +01:00
Move crypto modules
Move all the modules that constitute the crypto library as well as the associated headers to tf-psa-crypto/core for the PSA core modules and to tf-psa-crypto/drivers/builtin/src for the others. The common.h file is copied instead of being just moved as eventually they will be different in mbedtls and TF-PSA-Crypto. Some parts of it can be shared though but this will be done later, probably when adding the CMake build system in tf-psa-crypto. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
/*
|
||||
* Version information
|
||||
*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#if defined(MBEDTLS_VERSION_C)
|
||||
|
||||
#include "mbedtls/version.h"
|
||||
#include <string.h>
|
||||
|
||||
unsigned int mbedtls_version_get_number(void)
|
||||
{
|
||||
return MBEDTLS_VERSION_NUMBER;
|
||||
}
|
||||
|
||||
void mbedtls_version_get_string(char *string)
|
||||
{
|
||||
memcpy(string, MBEDTLS_VERSION_STRING,
|
||||
sizeof(MBEDTLS_VERSION_STRING));
|
||||
}
|
||||
|
||||
void mbedtls_version_get_string_full(char *string)
|
||||
{
|
||||
memcpy(string, MBEDTLS_VERSION_STRING_FULL,
|
||||
sizeof(MBEDTLS_VERSION_STRING_FULL));
|
||||
}
|
||||
|
||||
#endif /* MBEDTLS_VERSION_C */
|
||||
Reference in New Issue
Block a user