From 95d02ee28ea745541d6c55dba49f3b3ab8b71a43 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Mon, 11 Sep 2023 19:40:12 +0100 Subject: [PATCH] crypto.c: Support -O3 compiler builds Signed-off-by: Jon Shallow --- crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto.c b/crypto.c index be65a440..1937681d 100644 --- a/crypto.c +++ b/crypto.c @@ -444,6 +444,7 @@ int dtls_ecdh_pre_master_secret(unsigned char *priv_key, uint32_t result_x[8]; uint32_t result_y[8]; + assert(key_size == sizeof(priv)); if (result_len < key_size) { return -1; }