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

Make libjade use DOIT instructions on secrets (p2) #123

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

tfaoliveira-sb
Copy link
Contributor

Second part of: #108

J08nY and others added 17 commits May 8, 2024 15:23
egrep is deprecated.
This spills some more registers to the stack in the reference chacha core. This comes at a significant performance cost. Further experimentation should be done with register packing instead.
But at what cost?!?
The rotate instruction just ignores these, but the ">>=" operators complain.
Fix xsalsa20poly1305 by swapping its xsalsa20 with the DOIT one.

Adds declassifies into xsalsa20poly1305.
This declassifies the result of tag verification, which leaks via
a branch (decryption is not done if tag does not verify).
Make libjade use DOIT instructions on secrets
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