From 68e4014c3fe15db00b925da7c5d477ac4af31121 Mon Sep 17 00:00:00 2001 From: Tesfa Mael Date: Mon, 11 Nov 2019 09:43:10 -0800 Subject: [PATCH] memset DhKeys --- wolfcrypt/test/test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 98fb3ca06..c6cfca293 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -13039,6 +13039,9 @@ static int dh_test_ffdhe(WC_RNG *rng, const DhParams* params) DhKey key; DhKey key2; + XMEMSET(&key, 0, sizeof(DhKey)); + XMEMSET(&key2, 0, sizeof(DhKey)); + ret = wc_InitDhKey_ex(&key, HEAP_HINT, devId); if (ret != 0) { ERROR_OUT(-7180, done);