Initial implementation (#1)

This commit is contained in:
Kevin Lewi
2021-09-09 01:56:54 -07:00
committed by GitHub
parent 743692882d
commit bb4b9d0909
23 changed files with 2093 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
// Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
//! Defines the CipherSuite trait to specify the underlying primitives for VOPRF
use crate::{group::Group, hash::Hash};
/// Configures the underlying primitives used in VOPRF
pub trait CipherSuite {
/// A finite cyclic group along with a point representation that allows some
/// customization on how to hash an input to a curve point. See `group::Group`.
type Group: Group;
/// The main hash function to use (for HKDF computations and hashing transcripts).
type Hash: Hash;
}