pub enum DeterministicKeyGenError {
Validation(KeyGenError),
InvalidSeedLen {
expected: usize,
actual: usize,
},
InvalidStreamKeyLen {
expected: usize,
actual: usize,
},
RejectedSeed,
ExhaustedAttempts {
attempts: u32,
},
}Expand description
Error type for deterministic Falcon key pair generation.
Variants§
Validation(KeyGenError)
Generic key-generation validation failure.
InvalidSeedLen
The provided Falcon seed length is invalid.
InvalidStreamKeyLen
The provided PQHD stream-key length is invalid.
RejectedSeed
The provided Falcon seed was rejected by deterministic key generation.
ExhaustedAttempts
Deterministic stream-key retries were exhausted.
Trait Implementations§
Source§impl Clone for DeterministicKeyGenError
impl Clone for DeterministicKeyGenError
Source§fn clone(&self) -> DeterministicKeyGenError
fn clone(&self) -> DeterministicKeyGenError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeterministicKeyGenError
Source§impl Debug for DeterministicKeyGenError
impl Debug for DeterministicKeyGenError
Source§impl Display for DeterministicKeyGenError
impl Display for DeterministicKeyGenError
impl Eq for DeterministicKeyGenError
Source§impl From<KeyGenError> for DeterministicKeyGenError
impl From<KeyGenError> for DeterministicKeyGenError
Source§fn from(value: KeyGenError) -> DeterministicKeyGenError
fn from(value: KeyGenError) -> DeterministicKeyGenError
Converts to this type from the input type.
Source§impl PartialEq for DeterministicKeyGenError
impl PartialEq for DeterministicKeyGenError
impl StructuralPartialEq for DeterministicKeyGenError
Auto Trait Implementations§
impl Forget for DeterministicKeyGenError
impl Freeze for DeterministicKeyGenError
impl Move for DeterministicKeyGenError
impl RefUnwindSafe for DeterministicKeyGenError
impl Send for DeterministicKeyGenError
impl Sync for DeterministicKeyGenError
impl Unpin for DeterministicKeyGenError
impl UnsafeUnpin for DeterministicKeyGenError
impl UnwindSafe for DeterministicKeyGenError
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