pub enum VrfMode {
Classical,
HybridOutput,
PurePqExperimental,
}Expand description
The Layer-3 VRF privacy mode (#324 Q3 / #304). In v0.1 only Classical
is legal; HybridOutput and PurePqExperimental are scoped for the future
hybrid path but rejected as malformed until that path is built.
Variants§
Classical
Classical ECVRF-edwards25519 (RFC 9381 ciphersuite 0x03); the v0.1
default and only legal value.
HybridOutput
Designed-in hybrid output combiner (classical || PQ via SHA3-512). Scoped but not legal in v0.1 (no audited lattice VRF — #304).
PurePqExperimental
Experimental pure-PQ VRF. Scoped but not legal in v0.1.
Implementations§
Source§impl VrfMode
impl VrfMode
Sourcepub fn expected_vrf_suite_id(self) -> Option<u8>
pub fn expected_vrf_suite_id(self) -> Option<u8>
The CONIKS crate::vrf::Vrf::suite_id this mode requires, for
declared == observed VRF enforcement. Returns None for modes that have
no built construction in v0.1.
Trait Implementations§
impl Copy for VrfMode
impl Eq for VrfMode
impl StructuralPartialEq for VrfMode
Auto Trait Implementations§
impl Freeze for VrfMode
impl RefUnwindSafe for VrfMode
impl Send for VrfMode
impl Sync for VrfMode
impl Unpin for VrfMode
impl UnsafeUnpin for VrfMode
impl UnwindSafe for VrfMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more