mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-29 08:24:11 -04:00
tls13: keys: Fix indentation
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
831fee68c3
commit
4c7edb2b9b
@ -1250,9 +1250,6 @@ exit:
|
|||||||
int mbedtls_ssl_tls13_key_schedule_stage_handshake( mbedtls_ssl_context *ssl )
|
int mbedtls_ssl_tls13_key_schedule_stage_handshake( mbedtls_ssl_context *ssl )
|
||||||
{
|
{
|
||||||
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
||||||
#if defined(MBEDTLS_KEY_EXCHANGE_SOME_ECDHE_ENABLED) && defined(MBEDTLS_ECDH_C)
|
|
||||||
psa_status_t status = PSA_ERROR_GENERIC_ERROR;
|
|
||||||
#endif /* MBEDTLS_KEY_EXCHANGE_SOME_ECDHE_ENABLED && MBEDTLS_ECDH_C */
|
|
||||||
mbedtls_ssl_handshake_params *handshake = ssl->handshake;
|
mbedtls_ssl_handshake_params *handshake = ssl->handshake;
|
||||||
psa_algorithm_t const hash_alg = mbedtls_hash_info_psa_from_md(
|
psa_algorithm_t const hash_alg = mbedtls_hash_info_psa_from_md(
|
||||||
handshake->ciphersuite_info->mac );
|
handshake->ciphersuite_info->mac );
|
||||||
@ -1269,6 +1266,8 @@ int mbedtls_ssl_tls13_key_schedule_stage_handshake( mbedtls_ssl_context *ssl )
|
|||||||
{
|
{
|
||||||
#if defined(MBEDTLS_ECDH_C)
|
#if defined(MBEDTLS_ECDH_C)
|
||||||
/* Compute ECDH shared secret. */
|
/* Compute ECDH shared secret. */
|
||||||
|
psa_status_t status = PSA_ERROR_GENERIC_ERROR;
|
||||||
|
|
||||||
status = psa_raw_key_agreement(
|
status = psa_raw_key_agreement(
|
||||||
PSA_ALG_ECDH, handshake->ecdh_psa_privkey,
|
PSA_ALG_ECDH, handshake->ecdh_psa_privkey,
|
||||||
handshake->ecdh_psa_peerkey, handshake->ecdh_psa_peerkey_len,
|
handshake->ecdh_psa_peerkey, handshake->ecdh_psa_peerkey_len,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user