mirror of https://github.com/ARMmbed/mbed-os.git
remove crypto when missing ECDH
parent
fee986750d
commit
b95da8d8c4
|
@ -24,6 +24,7 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(MBEDTLS_ECDH_C)
|
||||
|
||||
#include "mbedtls/platform.h"
|
||||
#include "mbedtls/ecdh.h"
|
||||
|
@ -183,3 +184,5 @@ void CryptoToolbox::swap_endian(uint8_t* buf, size_t len) {
|
|||
} // pal
|
||||
} // ble
|
||||
|
||||
#endif //defined(MBEDTLS_ECDH_C)
|
||||
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
#include MBEDTLS_CONFIG_FILE
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_ECDH_C)
|
||||
|
||||
#include "mbedtls/platform.h"
|
||||
#include "mbedtls/entropy.h"
|
||||
#include "mbedtls/ecp.h"
|
||||
|
@ -139,4 +141,6 @@ private:
|
|||
} // pal
|
||||
} // ble
|
||||
|
||||
#endif // defined(MBEDTLS_ECDH_C)
|
||||
|
||||
#endif // NRF5X_CRYPTO_
|
||||
|
|
|
@ -20,9 +20,8 @@
|
|||
#include "ble/BLETypes.h"
|
||||
#include "ble/pal/PalSecurityManager.h"
|
||||
#include "nrf_ble.h"
|
||||
#if defined(MBEDTLS_ECDH_C)
|
||||
#include "nRF5xCrypto.h"
|
||||
#endif
|
||||
|
||||
|
||||
namespace ble {
|
||||
namespace pal {
|
||||
|
|
Loading…
Reference in New Issue