mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-18 14:42:24 +00:00
tls: removed extra white spaces and other minor fix
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
parent
6b3dab03b5
commit
819de86895
@ -8235,7 +8235,7 @@ int mbedtls_psa_ecjpake_read_round(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( input_offset != len )
|
if( input_offset != len )
|
||||||
return PSA_ERROR_INVALID_ARGUMENT;
|
return PSA_ERROR_INVALID_ARGUMENT;
|
||||||
|
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
@ -305,7 +305,7 @@ static int ssl_parse_ecjpake_kkpp( mbedtls_ssl_context *ssl,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||||
if ( ( ret = mbedtls_psa_ecjpake_read_round(
|
if( ( ret = mbedtls_psa_ecjpake_read_round(
|
||||||
&ssl->handshake->psa_pake_ctx, buf, len,
|
&ssl->handshake->psa_pake_ctx, buf, len,
|
||||||
MBEDTLS_ECJPAKE_ROUND_ONE ) ) != 0 )
|
MBEDTLS_ECJPAKE_ROUND_ONE ) ) != 0 )
|
||||||
{
|
{
|
||||||
@ -2867,7 +2867,7 @@ static int ssl_prepare_server_key_exchange( mbedtls_ssl_context *ssl,
|
|||||||
}
|
}
|
||||||
*out_p = MBEDTLS_ECP_TLS_NAMED_CURVE;
|
*out_p = MBEDTLS_ECP_TLS_NAMED_CURVE;
|
||||||
MBEDTLS_PUT_UINT16_BE( curve_info->tls_id, out_p, 1 );
|
MBEDTLS_PUT_UINT16_BE( curve_info->tls_id, out_p, 1 );
|
||||||
output_offset += sizeof( uint8_t ) + sizeof( uint16_t );
|
output_offset += 3;
|
||||||
|
|
||||||
ret = mbedtls_psa_ecjpake_write_round( &ssl->handshake->psa_pake_ctx,
|
ret = mbedtls_psa_ecjpake_write_round( &ssl->handshake->psa_pake_ctx,
|
||||||
out_p + output_offset,
|
out_p + output_offset,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user