tinyCrypt: Share ECDH secret calculation code-path

This commit is contained in:
Hanno Becker 2019-07-23 16:51:57 +01:00
parent 75f12d1eb9
commit a3c2c1712c
3 changed files with 21 additions and 20 deletions

View file

@ -3573,14 +3573,6 @@ static int ssl_out_client_key_exchange_write( mbedtls_ssl_context *ssl,
return( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED );
}
if( !uECC_shared_secret( ssl->handshake->ecdh_peerkey,
ssl->handshake->ecdh_privkey,
ssl->handshake->premaster,
uecc_curve ) )
{
return( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED );
}
/* TODO: Write the client share. */
((void) p);
((void) end);