From 3dd6dbc9baeb2bf25829265f864f513289c5c6bc Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 5 Dec 2023 22:09:19 +0100 Subject: [PATCH] polyseed: ensure alternative entropy is wiped before normal create --- src/polyseed/polyseed.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/polyseed/polyseed.cpp b/src/polyseed/polyseed.cpp index ba100be..b55206c 100644 --- a/src/polyseed/polyseed.cpp +++ b/src/polyseed/polyseed.cpp @@ -131,6 +131,7 @@ namespace polyseed { void data::create(feature_type features) { check_init(); + sodium_memzero(seed, POLYSEED_RANDBYTES); auto status = polyseed_create(features, &m_data); if (status != POLYSEED_OK) { throw get_error(status);