 +#endif /* !OC_DYNAMIC_ALLOCATION */
  
 -/**
-- * \def MBEDTLS_ECP_NIST_OPTIM
-- *
-- * Enable specific 'modulo p' routines for each NIST prime.
-- * Depending on the prime and architecture, makes operations 4 to 8 times
-- * faster on the corresponding curve.
-- *
-- * Comment this macro to disable NIST curves optimisation.
-- */
--#define MBEDTLS_ECP_NIST_OPTIM
-+#define MBEDTLS_PLATFORM_EXIT_ALT
-+#define MBEDTLS_PLATFORM_STD_EXIT oc_exit
-+#define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
- 
--/**
 - * \def MBEDTLS_ECDSA_DETERMINISTIC
 - *
 - * Enable deterministic ECDSA (RFC 6979).

-#define MBEDTLS_ECP_DP_BP384R1_ENABLED
-#define MBEDTLS_ECP_DP_BP512R1_ENABLED
-#define MBEDTLS_ECP_DP_CURVE25519_ENABLED
+#ifdef OC_DYNAMIC_ALLOCATION
+#include <stdlib.h>
+#define MBEDTLS_PLATFORM_STD_CALLOC calloc

- *
- *  This file is part of mbed TLS (https://tls.mbed.org)
- */
+// Copyright (c) 2018 Intel Corporation
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
