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

crypto/boringssl: don't overwrite mask #1925

Merged
merged 2 commits into from
Jan 24, 2025
Merged

crypto/boringssl: don't overwrite mask #1925

merged 2 commits into from
Jan 24, 2025

Conversation

ghedo
Copy link
Member

@ghedo ghedo commented Jan 24, 2025

AES_ecb_encrypt() will always write 16 bytes (an AES block length), but the new header protection code was passing in only 5 bytes... fun ensued.

This also refactors the header protection methods somewhat to not hard-code the mask length all over the place.

Closes #1924.

`AES_ecb_encrypt()` will always write 16 bytes (an AES block length),
but the new header protection code was passing in only 5 bytes... fun
ensued.

This also refactors the header protection methods somewhat to not
hard-code the mask length all over the place.

Closes #1924.
LPardue
LPardue previously approved these changes Jan 24, 2025
@ghedo ghedo merged commit 457809c into master Jan 24, 2025
36 checks passed
@ghedo ghedo deleted the fix-crypto-mask branch January 24, 2025 18:23
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.

slice index starts at 9738564731305555596 but ends at 1200 failure with 0.23.1 release build
2 participants