mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-15 22:59:56 +00:00
Remove TinyCrypt PRNG configuration from ssl_cli.c
The TinyCrypt PRNG is configured in mbedtls_ssl_setup().
This commit is contained in:
@@ -3974,11 +3974,6 @@ sign:
|
|||||||
rs_ctx = &ssl->handshake->ecrs_ctx.pk;
|
rs_ctx = &ssl->handshake->ecrs_ctx.pk;
|
||||||
#endif
|
#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 ),
|
if( ( ret = mbedtls_pk_sign_restartable( mbedtls_ssl_own_key( ssl ),
|
||||||
md_alg, hash_start, hashlen,
|
md_alg, hash_start, hashlen,
|
||||||
ssl->out_msg + 6 + offset, &n,
|
ssl->out_msg + 6 + offset, &n,
|
||||||
|
|||||||
Reference in New Issue
Block a user