#[repr(C)]pub enum ErrorCode {
Ok = 0,
Error = 1,
InvalidLength = 2,
InvalidMagicNumber = 3,
UnsupportedVersion = 4,
UnknownVersion = 5,
InvalidArgon2Type = 6,
InvalidArgon2Version = 7,
InvalidArgon2Params = 8,
InvalidArgon2Context = 9,
InvalidHeaderMac = 10,
InvalidMac = 11,
}
Expand description
The error code for the abcrypt encrypted data format.
Variants§
Ok = 0
Everything is ok.
Error = 1
General error.
InvalidLength = 2
The encrypted data was shorter than 164 bytes.
InvalidMagicNumber = 3
The magic number (file signature) was invalid.
UnsupportedVersion = 4
The version was the unsupported abcrypt version number.
UnknownVersion = 5
The version was the unrecognized abcrypt version number.
InvalidArgon2Type = 6
The Argon2 type were invalid.
InvalidArgon2Version = 7
The Argon2 version were invalid.
InvalidArgon2Params = 8
The Argon2 parameters were invalid.
InvalidArgon2Context = 9
The Argon2 context was invalid.
InvalidHeaderMac = 10
The MAC (authentication tag) of the header was invalid.
InvalidMac = 11
The MAC (authentication tag) of the ciphertext was invalid.
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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