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

Throw on truncation in the ECDH derive bits operation #351

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

twiss
Copy link
Member

@twiss twiss commented Aug 17, 2023

Throw on truncation in the ECDH derive bits operation, as discussed in #369.

Truncating the derived value in ECDH does not really make sense, and from Chromium's usage statistics, there is very low usage of truncation, so this change should be relatively low risk.


Preview | Diff

@davidben
Copy link

This should not be merged. See #369 (comment)

@twiss twiss force-pushed the deriveBits-ecdh-throw-zero-length branch from e8b5255 to 5bdfd07 Compare September 19, 2024 22:31
@twiss twiss changed the title Throw when length == 0 in the ECDH derive bits operation Throw on truncation in the ECDH derive bits operation Sep 19, 2024
@twiss
Copy link
Member Author

twiss commented Sep 19, 2024

I've updated the MR to throw on all truncation instead of only for 0, as discussed in #369 :)

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.

2 participants