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

Aarch64 Poly1305: fix corner case #8275

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

SparkiDev
Copy link
Contributor

Description

Don't mask top 26 bits as it may have next bit set as reduction step was only approximate.

Fixes zd#19030

Testing

./configure '--host=aarch64' 'CC=aarch64-linux-gnu-gcc' 'LDFLAGS=--static' '--enable-armasm' '--enable-poly1305' '--enable-chacha'
while ./examples/client/client -h 142.251.221.67 -p 443 -x -g -j -l TLS13-CHACHA20-POLY1305-SHA256 -v 4 2>&1 | tee l ; do echo . ; done
(IP address is for google.com.au)

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

Don't mask top 26 bits as it may have next bit set as reduction step was
only approximate.
@SparkiDev SparkiDev assigned SparkiDev and unassigned SparkiDev Dec 11, 2024
kp-thomas-yau added a commit to expressvpn/lightway-core that referenced this pull request Dec 11, 2024
Apply the wolfSSL/wolfssl#8275 PR fix. The original revert patch was here to fix mismatched tag when we are using ChaCha20 in TCP connection. See #183
Copy link
Contributor

@douzzer douzzer left a comment

Choose a reason for hiding this comment

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

tested pro forma with wolfssl-multi-test.sh ... quantum-safe-wolfssl-all-cross-aarch64-armasm-unittest-sanitizer.

@douzzer douzzer merged commit d825b08 into wolfSSL:master Dec 11, 2024
145 checks passed
kp-thomas-yau added a commit to expressvpn/wolfssl-rs that referenced this pull request Dec 12, 2024
Apply the wolfSSL/wolfssl#8275 PR fix. The original revert patch was here to fix mismatched tag when we are using ChaCha20 in TCP connection. See #203
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.

3 participants