aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Tschofenig <hannes.tschofenig@arm.com>2020-12-03 17:37:06 +0100
committerHannes Tschofenig <hannes.tschofenig@arm.com>2020-12-03 17:37:06 +0100
commitc34d9cf37a3b394fe25d9087940c25e0ced26e53 (patch)
treeb27225ba67ac326a5cd3c1507f3b92fe411e0564
parent77cddb3ef7ff0e0e0280fc18fc284feb4166342b (diff)
downloadmbedtls-c34d9cf37a3b394fe25d9087940c25e0ced26e53.zip
mbedtls-c34d9cf37a3b394fe25d9087940c25e0ced26e53.tar.gz
mbedtls-c34d9cf37a3b394fe25d9087940c25e0ced26e53.tar.bz2
Adding storage for public key to handshake_params
-rw-r--r--include/mbedtls/ssl_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbedtls/ssl_internal.h b/include/mbedtls/ssl_internal.h
index c0a5db7..0b1f453 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 */