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: pad numbers to requested size before XOR-ing them #22

Merged
merged 1 commit into from
Oct 1, 2023

Conversation

odesenfans
Copy link
Contributor

Problem: rebuilding the random number from the random bytes in the executor responses does not work when the generated random number is smaller than the requested number of bytes. This occurs because the random number is not padded before being XOR-ed with the others.

Solution: pad the random number of each executor to guarantee that it is N bytes wide.

Problem: rebuilding the random number from the random bytes in the
executor responses does not work when the generated random number is
smaller than the requested number of bytes. This occurs because the
random number is not padded before being XOR-ed with the others.

Solution: pad the random number of each executor to guarantee that it is
N bytes wide.
@odesenfans odesenfans force-pushed the od-pad-random-number-when-xor-ing branch from 876eae6 to f03ca98 Compare September 29, 2023 15:54
@nesitor nesitor assigned odesenfans and unassigned nesitor Sep 29, 2023
Copy link
Member

@nesitor nesitor left a comment

Choose a reason for hiding this comment

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

🔥 🚀

@odesenfans odesenfans merged commit f204ad8 into main Oct 1, 2023
4 checks passed
@odesenfans odesenfans deleted the od-pad-random-number-when-xor-ing branch October 1, 2023 20:18
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