Enum diem_sdk::crypto::noise::NoiseError [−][src]
pub enum NoiseError {
MsgTooShort,
Hkdf,
Encrypt,
Decrypt,
WrongPublicKeyReceived,
SessionClosed,
PayloadTooLarge,
ReceivedMsgTooLarge,
ResponseBufferTooSmall,
NonceOverflow,
}
Expand description
A NoiseError enum represents the different types of error that noise can return to users of the crate
Variants
the received message is too short to contain the expected data
HKDF has failed (in practice there is no reason for HKDF to fail)
encryption has failed (in practice there is no reason for encryption to fail)
could not decrypt the received data (most likely the data was tampered with
the public key received is of the wrong format
session was closed due to decrypt error
the payload that we are trying to send is too large
the message we received is too large
the response buffer passed as argument is too small
the nonce exceeds the maximum u64 value (in practice this should not happen)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NoiseError
impl Send for NoiseError
impl Sync for NoiseError
impl Unpin for NoiseError
impl UnwindSafe for NoiseError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more