Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

General improvements #65

Merged
merged 9 commits into from
Apr 1, 2022
Merged

General improvements #65

merged 9 commits into from
Apr 1, 2022

Conversation

daxpedda
Copy link
Contributor

@daxpedda daxpedda commented Feb 24, 2022

Just some improvements that came to mind while I was working on opaque-ke:

  • Rename util to common, as instead of utility functions this now contains a lot of common functionality between the OPRF modes.
  • Relax bounds of hash_to_scalar and hash_to_group to only what's needed, now that we don't pass in Mode anymore.
  • The public key generated by DeriveKeyPair is thrown away in the OPRF mode, so I split the function up to not unnecessary generate a public key, improving the performance a bit.
  • Simplify some Ristretto255 implementations.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 24, 2022
Copy link
Contributor

@kevinlewi kevinlewi left a comment

Choose a reason for hiding this comment

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

Looks good to me! Did you want to take this out of draft mode?

@daxpedda
Copy link
Contributor Author

daxpedda commented Mar 7, 2022

I only left it in draft mode because I planned to add more stuff until I finish facebook/opaque-ke#268. I can take it out if you prefer, feel free to merge it if you want it out of the way too.

@kevinlewi
Copy link
Contributor

It should be fine to leave this in draft for now, then. Thanks for the clarification!

@kevinlewi
Copy link
Contributor

(@daxpedda: Update from my previous comment: I will be happy to push out the next version once this PR is landed, so feel free to take it out of draft mode if you think it is ready for re-review + merge)

@kevinlewi kevinlewi marked this pull request as ready for review April 1, 2022 19:18
@kevinlewi kevinlewi merged commit 1a61401 into facebook:main Apr 1, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants