mbedtls trng - remove MBEDTLS_ENTROPY_HARDWARE_ALT

MBEDTLS_ENTROPY_HARDWARE_ALT will be defined via config in mbedtls,
the mbed wrapper should use DEVICE_TRNG.
pull/2765/head
Martin Kojtal 2016-09-27 09:16:28 +01:00
parent ef58562ad0
commit 1b95c67dd2
1 changed files with 2 additions and 2 deletions

View File

@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
#include "hal/trng_api.h" #if defined(DEVICE_TRNG)
#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT) && defined(DEVICE_TRNG) #include "hal/trng_api.h"
int mbedtls_hardware_poll( void *data, unsigned char *output, size_t len, size_t *olen ) { int mbedtls_hardware_poll( void *data, unsigned char *output, size_t len, size_t *olen ) {
trng_t trng_obj; trng_t trng_obj;