From c34d9cf37a3b394fe25d9087940c25e0ced26e53 Mon Sep 17 00:00:00 2001 From: Hannes Tschofenig Date: Thu, 3 Dec 2020 17:37:06 +0100 Subject: [PATCH] Adding storage for public key to handshake_params --- include/mbedtls/ssl_internal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/mbedtls/ssl_internal.h b/include/mbedtls/ssl_internal.h index c0a5db7be..0b1f453e8 100644 --- a/include/mbedtls/ssl_internal.h +++ b/include/mbedtls/ssl_internal.h @@ -573,6 +573,9 @@ struct mbedtls_ssl_handshake_params #if defined(MBEDTLS_USE_TINYCRYPT) uint8_t ecdh_privkey[NUM_ECC_BYTES]; +#if defined(MBEDTLS_EARLY_KEY_COMPUTATION) + uint8_t ecdh_publickey[2*NUM_ECC_BYTES]; +#endif /* MBEDTLS_EARLY_KEY_COMPUTATION */ uint8_t ecdh_peerkey[2*NUM_ECC_BYTES]; #endif /* MBEDTLS_USE_TINYCRYPT */