Skip to content

Commit

Permalink
crypt: Zeroize reserved field after computation.
Browse files Browse the repository at this point in the history
  • Loading branch information
besser82 committed Jan 15, 2025
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
Expand Up @@ -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;
}

Expand Down

0 comments on commit 36618ad

Please sign in to comment.