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

Fix: GenerateNonce(ECPubKey) wasn't random as expected #1228

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

NicolasDorier
Copy link
Collaborator

@NicolasDorier NicolasDorier commented Sep 22, 2024

Because an empty sessionId was passed instead of null, the nonce wouldn't be randomly generated, using a constant zero byte sessionId leading to nonce reuse...

Nonce reuse is as good as leaking private keys so this is a critical bug.

Reported by @angelonardone

@NicolasDorier NicolasDorier merged commit 46af199 into master Sep 22, 2024
9 of 12 checks passed
@NicolasDorier NicolasDorier deleted the fqirnqtn branch September 22, 2024 14:57
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.

1 participant