Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypt: Zeroize reserved field after computation.
Browse files Browse the repository at this point in the history
besser82 committed Jan 15, 2025

Verified

This commit was signed with the committer’s verified signature.
besser82 Björn Esser
1 parent 4b2d8fb commit 36618ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/crypt.c
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 36618ad

Please sign in to comment.