cfrg / draft-irtf-cfrg-voprf

Oblivious Pseudorandom Functions (OPRFs) using Prime-Order Groups
https://cfrg.github.io/draft-irtf-cfrg-voprf/#go.draft-irtf-cfrg-voprf.html
Other
39 stars 15 forks source link

Refactor domain separation strings to allow for general use. #243

Closed chris-wood closed 3 years ago

chris-wood commented 3 years ago

The current domain separation strategy prepended a variant and version string to each internal DST. If the proof generation and verification routines were reused elsewhere, e.g., in other standards, that would mean the DST would include "VOPRF," which is not ideal. (Certainly this proof logic is not coupled to the rest of the VOPRF protocol!) This change moves the variant and version string around to the context string, and makes that a parameter for each function. If another standard wants to change the string, they can do so by changing the context string parameter to whatever suits their needs.

cc @siyengar