Enum diem_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)