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

Voprf trait #500

Closed
daxpedda opened this issue Dec 27, 2021 · 1 comment · Fixed by RustCrypto/traits#878
Closed

Voprf trait #500

daxpedda opened this issue Dec 27, 2021 · 1 comment · Fixed by RustCrypto/traits#878

Comments

@daxpedda
Copy link
Contributor

Similar to JwkParameters or AlgorithmParameters I propose adding a Voprf parameter that adds the suite ID, see the RFC.

It could look like this:

pub trait Voprf<H: HashMarker> {
    const SUITE_ID: u16;
}

NistP256 & co could then implement this trait.

The name is actually not very good, it should probably be VoprfCipherSuiteId or something like that.

Related: #497.

@daxpedda
Copy link
Contributor Author

daxpedda commented Jan 9, 2022

Implemented in RustCrypto/traits#878. Trait implementation in curves in #506.

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 a pull request may close this issue.

1 participant