pub enum PrfError {
ZeroInput,
InvalidKey,
InvalidParam,
}Expand description
Failure modes for Legendre / Gold PRF operations.
Variants§
ZeroInput
(x + K) ≡ 0 (mod p) so the Legendre symbol is zero and the degree-1 PRF is undefined at this point.
InvalidKey
Key material is invalid (e.g. zero or not reduced modulo p).
InvalidParam
Parameter set is malformed (e.g. modulus not odd).
Trait Implementations§
impl Copy for PrfError
impl Eq for PrfError
impl StructuralPartialEq for PrfError
Auto Trait Implementations§
impl Freeze for PrfError
impl RefUnwindSafe for PrfError
impl Send for PrfError
impl Sync for PrfError
impl Unpin for PrfError
impl UnsafeUnpin for PrfError
impl UnwindSafe for PrfError
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