From 36618add770ee674d94c9b0065a5c1efbc6c4cbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Wed, 15 Jan 2025 12:22:22 +0100 Subject: [PATCH] crypt: Zeroize reserved field after computation. --- lib/crypt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/crypt.c b/lib/crypt.c index c402cac7..9fd863e0 100644 --- a/lib/crypt.c +++ b/lib/crypt.c @@ -180,7 +180,8 @@ do_crypt (const char *phrase, const char *setting, struct crypt_data *data) (unsigned char *)data->output, sizeof data->output, cint->alg_specific, sizeof cint->alg_specific); - explicit_bzero (data->internal, sizeof data->internal); + explicit_bzero (data->internal, sizeof (data->internal)); + explicit_bzero (data->reserved, sizeof (data->reserved)); data->initialized = 0; }