Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argon2 impl Debug #423

Merged
merged 2 commits into from
Jun 14, 2023
Merged

Argon2 impl Debug #423

merged 2 commits into from
Jun 14, 2023

Conversation

RoDmitry
Copy link
Contributor

No description provided.

@tarcieri
Copy link
Member

The Argon2 struct contains a secret field which a blanket Debug impl like this will reveal.

Instead it needs a handwritten one which uses debug_struct and omits the secret field, either substituting e.g. an ellipsis "..." for the secret field or using finish_non_exhaustive.

@RoDmitry
Copy link
Contributor Author

Done using finish_non_exhaustive

@RoDmitry RoDmitry changed the title Argon2 derive Debug Argon2 impl Debug Jun 14, 2023
Copy link
Member

@tarcieri tarcieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@tarcieri tarcieri merged commit eccda35 into RustCrypto:master Jun 14, 2023
13 checks passed
@RoDmitry RoDmitry deleted the patch-1 branch June 15, 2023 10:18
@tarcieri tarcieri mentioned this pull request Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants