mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 12:05:31 +00:00
tinyCrypt: Remove check for Secp256r1 in SrvKeyExch writing
The use of tinyCrypt is restricted Secp256r1-only, and a check in ssl_ciphersuite_is_match() ensures that an EC ciphersuite is chosen only if the client advertised support for Secp256r1, too.
This commit is contained in:
parent
9175c21b72
commit
b1626fb619
|
@ -3398,14 +3398,6 @@ static int ssl_prepare_server_key_exchange( mbedtls_ssl_context *ssl,
|
|||
0x04 /* Uncompressed */
|
||||
};
|
||||
|
||||
if( ssl->handshake->curve_tls_id != secp256r1_tls_id )
|
||||
{
|
||||
MBEDTLS_SSL_DEBUG_MSG( 1, ( "Unsupported curve %u (expected %u)",
|
||||
(unsigned) ssl->handshake->curve_tls_id,
|
||||
secp256r1_tls_id ) );
|
||||
return( MBEDTLS_ERR_SSL_NO_CIPHER_CHOSEN );
|
||||
}
|
||||
|
||||
if( !uECC_make_key( ssl->handshake->ecdh_ownpubkey,
|
||||
ssl->handshake->ecdh_privkey,
|
||||
uecc_curve ) )
|
||||
|
|
Loading…
Reference in a new issue