Improve a comment

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard 2021-12-09 11:45:03 +01:00
parent 1ab2d6966c
commit e5119898e4

View file

@ -2366,9 +2366,16 @@ static int ssl_parse_server_ecdh_params_psa( mbedtls_ssl_context *ssl,
mbedtls_ssl_handshake_params *handshake = ssl->handshake;
/*
* Parse ECC group
* struct {
* ECParameters curve_params;
* ECPoint public;
* } ServerECDHParams;
*
* 1 curve_type (must be named curve)
* 2..3 NamedCurve
* 4 ECPoint.len
* 5+ ECPoint contents
*/
if( end - *p < 4 )
return( MBEDTLS_ERR_SSL_DECODE_ERROR );