Enum crypto::voice::VoiceError
zaun_community_protocol::crypto::voice::VoiceError · Enum
pub enum VoiceError { … }A voice key or frame operation failed.
Variants
Section titled “Variants”The OS CSPRNG failed.
Encode(EncodeError)
Section titled “Encode(EncodeError)”A value breaks an encoding rule.
Decode(DecodeError)
Section titled “Decode(DecodeError)”Bytes are not a canonical encoding.
Signed(SignedError)
Section titled “Signed(SignedError)”A member signature does not verify, or signing failed.
Length(&'static str)
Section titled “Length(&'static str)”The input has the wrong length.
UnknownSuite(u8)
Section titled “UnknownSuite(u8)”The voice suite is not one this implementation knows.
PublicKey
Section titled “PublicKey”The X-Wing public key is invalid.
Mismatch(&'static str)
Section titled “Mismatch(&'static str)”A signed field does not match what the verifier expects.
Unwrap
Section titled “Unwrap”HPKE failed: the wrapped key was not made for this recipient or was altered.
WrappedHash
Section titled “WrappedHash”The wrapped key’s hash is not the one the sender signed for this recipient.
NotARecipient
Section titled “NotARecipient”The sender-keys message does not name this recipient.
Recipients
Section titled “Recipients”More recipients than super::MAX_RECIPIENTS, or the same one twice.
StaleEpoch
Section titled “StaleEpoch”An epoch that is not newer than the one in use.
Exhausted
Section titled “Exhausted”The sender has used every epoch or counter of this voice session; rejoin.
Header
Section titled “Header”The SFrame header is malformed or not minimally encoded.
UnknownKid
Section titled “UnknownKid”No key for the frame’s KID.
Replay
Section titled “Replay”The frame’s counter was already seen or is older than the replay window.
The frame does not authenticate.
KidCollision
Section titled “KidCollision”Two participants’ KIDs collide; the newer one rejoins with a new voice session.
UnknownPeer
Section titled “UnknownPeer”The participant is not known (no verified key package).
NoSenderKey
Section titled “NoSenderKey”No sender key is active yet.
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug, Display, Eq, Error, From<DecodeError>, From<EncodeError>, From<RngError>, From<SignedError>, PartialEq, StructuralPartialEq