mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-07-29 23:37:46 +00:00
Modifications done by executing the script for each private header (in the tf-psa-crypto section)
Signed-off-by: Anton Matkin <[email protected]>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
#if defined(MBEDTLS_BIGNUM_C)
|
||||
|
||||
#include <mbedtls/bignum.h>
|
||||
#include <mbedtls/private/bignum.h>
|
||||
#include <bignum_mod.h>
|
||||
|
||||
/** Allocate and populate a core MPI from a test case argument.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <psa/crypto_driver_common.h>
|
||||
#include <psa/crypto.h>
|
||||
|
||||
#include "mbedtls/cipher.h"
|
||||
#include "mbedtls/private/cipher.h"
|
||||
|
||||
typedef struct {
|
||||
/* If non-null, on success, copy this to the output. */
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#define PSA_CRYPTO_TEST_DRIVER_LOCATION 0x7fffff
|
||||
|
||||
#include "test/drivers/aead.h"
|
||||
#include "test/drivers/cipher.h"
|
||||
#include "test/drivers/private/cipher.h"
|
||||
#include "test/drivers/hash.h"
|
||||
#include "test/drivers/mac.h"
|
||||
#include "test/drivers/key_management.h"
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined(MBEDTLS_BIGNUM_C)
|
||||
#include "mbedtls/bignum.h"
|
||||
#include "mbedtls/private/bignum.h"
|
||||
#endif
|
||||
|
||||
/** The type of test case arguments that contain binary data. */
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#endif
|
||||
|
||||
#include <psa/crypto.h>
|
||||
#include <mbedtls/ctr_drbg.h>
|
||||
#include <mbedtls/private/ctr_drbg.h>
|
||||
|
||||
#if defined(MBEDTLS_PSA_CRYPTO_C)
|
||||
/** Initialize the PSA Crypto subsystem. */
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <mbedtls/bignum.h>
|
||||
#include <mbedtls/private/bignum.h>
|
||||
#include <bignum_core.h>
|
||||
#include <bignum_mod.h>
|
||||
#include <bignum_mod_raw.h>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#if defined(PSA_CRYPTO_DRIVER_TEST)
|
||||
#include "psa/crypto.h"
|
||||
#include "mbedtls/rsa.h"
|
||||
#include "mbedtls/private/rsa.h"
|
||||
#include "psa_crypto_rsa.h"
|
||||
#include "string.h"
|
||||
#include "test/drivers/asymmetric_encryption.h"
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
#include "psa/crypto.h"
|
||||
#include "psa_crypto_cipher.h"
|
||||
#include "psa_crypto_core.h"
|
||||
#include "mbedtls/cipher.h"
|
||||
#include "mbedtls/private/cipher.h"
|
||||
|
||||
#include "test/drivers/cipher.h"
|
||||
#include "test/drivers/private/cipher.h"
|
||||
|
||||
#include "test/random.h"
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "psa_crypto_ecp.h"
|
||||
#include "psa_crypto_rsa.h"
|
||||
#include "psa_crypto_ffdh.h"
|
||||
#include "mbedtls/ecp.h"
|
||||
#include "mbedtls/private/ecp.h"
|
||||
#include "mbedtls/error.h"
|
||||
|
||||
#include "test/drivers/key_management.h"
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
#include "psa_crypto_ecp.h"
|
||||
#include "psa_crypto_hash.h"
|
||||
#include "psa_crypto_rsa.h"
|
||||
#include "mbedtls/ecp.h"
|
||||
#include "mbedtls/private/ecp.h"
|
||||
|
||||
#include "test/drivers/hash.h"
|
||||
#include "test/drivers/signature.h"
|
||||
#include "test/drivers/hash.h"
|
||||
|
||||
#include "mbedtls/ecdsa.h"
|
||||
#include "mbedtls/private/ecdsa.h"
|
||||
|
||||
#include "test/random.h"
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ psa_status_t mbedtls_psa_external_get_random(
|
||||
#if defined(MBEDTLS_PLATFORM_GET_ENTROPY_ALT) || defined(MBEDTLS_PSA_DRIVER_GET_ENTROPY)
|
||||
|
||||
#include <test/random.h>
|
||||
#include <mbedtls/entropy.h>
|
||||
#include <mbedtls/private/entropy.h>
|
||||
|
||||
static int platform_get_entropy_force_failure;
|
||||
static size_t platform_get_entropy_forced_entropy_content = SIZE_MAX;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <test/psa_crypto_helpers.h>
|
||||
|
||||
#if defined(MBEDTLS_CTR_DRBG_C)
|
||||
#include <mbedtls/ctr_drbg.h>
|
||||
#include <mbedtls/private/ctr_drbg.h>
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_PSA_CRYPTO_C)
|
||||
@@ -249,7 +249,7 @@ exit:
|
||||
|
||||
#if defined(MBEDTLS_PSA_INJECT_ENTROPY)
|
||||
|
||||
#include <mbedtls/entropy.h>
|
||||
#include <mbedtls/private/entropy.h>
|
||||
#include <psa_crypto_its.h>
|
||||
|
||||
int mbedtls_test_inject_entropy_seed_read(unsigned char *buf, size_t len)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <pk_internal.h>
|
||||
#endif
|
||||
#if defined(MBEDTLS_ECP_C)
|
||||
#include <mbedtls/ecp.h>
|
||||
#include <mbedtls/private/ecp.h>
|
||||
#endif
|
||||
#if defined(MBEDTLS_RSA_C)
|
||||
#include <rsa_internal.h>
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@
|
||||
#include <test/random.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <mbedtls/entropy.h>
|
||||
#include <mbedtls/private/entropy.h>
|
||||
#include <alignment.h>
|
||||
|
||||
int mbedtls_test_rnd_std_rand(void *rng_state,
|
||||
|
||||
Reference in New Issue
Block a user