|
@@ -33,18 +33,18 @@
|
|
|
#ifdef CRYPTO_USE_MBEDTLS
|
|
|
#define CRYPTO_PROVIDER_SPECIFIED
|
|
|
|
|
|
-#include "crypto/mbedtls/include/mbedtls/cmac.h"
|
|
|
+#include "mbedtls/cmac.h"
|
|
|
typedef struct AES LIB_AES_CONTEXT;
|
|
|
|
|
|
-#include "crypto/mbedtls/include/mbedtls/dhm.h"
|
|
|
-#include "crypto/mbedtls/include/mbedtls/rsa.h"
|
|
|
-#include "crypto/mbedtls/include/mbedtls/sha256.h"
|
|
|
+#include "mbedtls/dhm.h"
|
|
|
+#include "mbedtls/rsa.h"
|
|
|
+#include "mbedtls/sha256.h"
|
|
|
|
|
|
typedef mbedtls_sha256_context LIB_SHA256_CONTEXT;
|
|
|
|
|
|
/* DH_SIZE is tied to the choice of parameters in mbedtls_dh.c. */
|
|
|
#define DH_SIZE 256
|
|
|
-#include "crypto/mbedtls/include/mbedtls/dhm.h"
|
|
|
+#include "mbedtls/dhm.h"
|
|
|
typedef mbedtls_dhm_context LIB_DH_CONTEXT;
|
|
|
typedef mbedtls_rsa_context LIB_RSA_KEY;
|
|
|
typedef struct {
|
|
@@ -52,9 +52,9 @@ typedef struct {
|
|
|
mbedtls_cipher_context_t ctx;
|
|
|
} LIB_AESCMAC_CONTEXT;
|
|
|
|
|
|
-#include "crypto/mbedtls/include/mbedtls/ctr_drbg.h"
|
|
|
-#include "crypto/mbedtls/include/mbedtls/entropy.h"
|
|
|
-#include "crypto/mbedtls/include/mbedtls/ssl.h"
|
|
|
+#include "mbedtls/ctr_drbg.h"
|
|
|
+#include "mbedtls/entropy.h"
|
|
|
+#include "mbedtls/ssl.h"
|
|
|
typedef struct {
|
|
|
mbedtls_entropy_context entropy;
|
|
|
mbedtls_ctr_drbg_context ctr_drbg;
|
|
@@ -130,7 +130,7 @@ int lib_Base64Encode(const uint8_t* src, size_t slen, char* dst, size_t* dlen);
|
|
|
int lib_Base64Decode(const char *src, size_t slen, uint8_t* dst, size_t* dlen);
|
|
|
|
|
|
#ifdef CRYPTO_USE_MBEDTLS
|
|
|
-#include "crypto/mbedtls/include/mbedtls/asn1.h"
|
|
|
+#include "mbedtls/asn1.h"
|
|
|
enum asn1_tag {
|
|
|
ASN1_BOOLEAN = MBEDTLS_ASN1_BOOLEAN,
|
|
|
ASN1_INTEGET = MBEDTLS_ASN1_INTEGER,
|