Enum Ed448Error
pub enum Ed448Error {
WrongKeyLength,
WrongPublicKeyLength,
WrongSignatureLength,
InvalidPoint,
InvalidSignature,
ContextTooLong,
}
Expand description
Errors of this crate
Variants§
WrongKeyLength
The provided array is not in the correct length for the private key.
It must be crate::KEY_LENGTH
.
See PrivateKey::from.
WrongPublicKeyLength
The provided array is not in the correct length for the public key.
It must be crate::KEY_LENGTH
.
See PublicKey::from.
WrongSignatureLength
The provided array is not in the correct length for the signature.
It must be SIG_LENGTH
.
See PublicKey::verify.
InvalidPoint
The computed point is not valid (maybe forged/altered public key or signature).
InvalidSignature
Signature verification failed.
See PublicKey::verify.
ContextTooLong
The provided context byte array is too long.
It must not be more than 256 byte.
Trait Implementations§
§impl Clone for Ed448Error
impl Clone for Ed448Error
§fn clone(&self) -> Ed448Error
fn clone(&self) -> Ed448Error
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for Ed448Error
impl Debug for Ed448Error
§impl PartialEq for Ed448Error
impl PartialEq for Ed448Error
impl Copy for Ed448Error
impl Eq for Ed448Error
impl StructuralPartialEq for Ed448Error
Auto Trait Implementations§
impl Freeze for Ed448Error
impl RefUnwindSafe for Ed448Error
impl Send for Ed448Error
impl Sync for Ed448Error
impl Unpin for Ed448Error
impl UnwindSafe for Ed448Error
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