From 1521ec501c19fda5b6b7e82e9b9de1267af8a613 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Tue, 20 Aug 2019 14:04:38 +0100 Subject: [PATCH] Remove TinyCrypt PRNG configuration from ssl_cli.c The TinyCrypt PRNG is configured in mbedtls_ssl_setup(). --- library/ssl_cli.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index a68d802a8..9e35beda0 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -3974,11 +3974,6 @@ sign: rs_ctx = &ssl->handshake->ecrs_ctx.pk; #endif -#if defined(MBEDTLS_USE_TINYCRYPT) - if ( uECC_get_rng() == 0 ) - uECC_set_rng(&mbetls_uecc_rng_wrapper); -#endif - if( ( ret = mbedtls_pk_sign_restartable( mbedtls_ssl_own_key( ssl ), md_alg, hash_start, hashlen, ssl->out_msg + 6 + offset, &n,