Skip to content

Commit

Permalink
Update VOPRF identifier type
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Dec 20, 2022
1 parent 9bf4bf8 commit b9282ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions elliptic-curve/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ pub type ProjectivePoint<C> = <C as ProjectiveArithmetic>::ProjectivePoint;
#[cfg_attr(docsrs, doc(cfg(feature = "voprf")))]
pub trait VoprfParameters: Curve {
/// The `ID` parameter which identifies a particular elliptic curve
/// as defined in [section 4 of `draft-irtf-cfrg-voprf-08`][voprf].
/// as defined in [section 4 of `draft-irtf-cfrg-voprf-master`][voprf].
///
/// [voprf]: https://www.ietf.org/archive/id/draft-irtf-cfrg-voprf-08.html#section-4
const ID: u16;
/// [voprf]: https://cfrg.github.io/draft-irtf-cfrg-voprf/draft-irtf-cfrg-voprf.html#name-ciphersuites
const ID: &'static str;

/// The `Hash` parameter which assigns a particular hash function to this
/// ciphersuite as defined in [section 4 of `draft-irtf-cfrg-voprf-08`][voprf].
/// ciphersuite as defined in [section 4 of `draft-irtf-cfrg-voprf-master`][voprf].
///
/// [voprf]: https://www.ietf.org/archive/id/draft-irtf-cfrg-voprf-08.html#section-4
/// [voprf]: https://cfrg.github.io/draft-irtf-cfrg-voprf/draft-irtf-cfrg-voprf.html#name-ciphersuites
type Hash: digest::Digest;
}

0 comments on commit b9282ee

Please sign in to comment.