-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extras: Add EC toolbox abstractions and OPRF(P-384, SHA-384) VOPRF API (
#292) ## Motivation We would like to provide support for the P384-SHA384 Verifiable Oblivious Pseudorandom Function (VOPRF) as defined in [RFC 9497: VOPRF Protocol](https://www.rfc-editor.org/rfc/rfc9497.html#name-voprf-protocol). ## Modifications - Add protocols for some "ECToolbox" abstractions: `Group`, `GroupElement`, `GroupScalar`, `HashToGroup`. - Add implementations backed by BoringSSL. - Duplicate some utilities from Crypto into _CryptoExtras: hexadecimal bytes and I2OSP. - Add VOPRF API, rooted at `enum P384._VOPRF`. ## Results - New internal abstractions that make it easier to bring up new implementations. - New API for `OPRF(P-384, SHA-384)` in VOPRF mode. ## Tests - Test vectors for internal `HashToField` implementation. - Test vectors for internal VOPRF implementation. - Tests of the VOPRF public API.
- Loading branch information
1 parent
a3b7196
commit ff0f781
Showing
28 changed files
with
4,061 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.