Enum prio::encrypt::EncryptError
source · [−]pub enum EncryptError {
DecodeBase64(DecodeError),
KeyAgreement,
Encryption,
Decryption,
DecryptionLength,
Prng(PrngError),
GetRandom(Error),
}
Expand description
Possible errors from encryption / decryption.
Variants
DecodeBase64(DecodeError)
Base64 decoding error
KeyAgreement
Error in ECDH
Encryption
Buffer for ciphertext was not large enough
Decryption
Authentication tags did not match.
DecryptionLength
Input ciphertext was too small
Prng(PrngError)
PRNG error
GetRandom(Error)
failure when calling getrandom().
Trait Implementations
sourceimpl Debug for EncryptError
impl Debug for EncryptError
sourceimpl Display for EncryptError
impl Display for EncryptError
sourceimpl Error for EncryptError
impl Error for EncryptError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<DecodeError> for EncryptError
impl From<DecodeError> for EncryptError
sourcefn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
sourceimpl From<EncryptError> for ClientError
impl From<EncryptError> for ClientError
sourcefn from(source: EncryptError) -> Self
fn from(source: EncryptError) -> Self
Converts to this type from the input type.
sourceimpl From<EncryptError> for ServerError
impl From<EncryptError> for ServerError
sourcefn from(source: EncryptError) -> Self
fn from(source: EncryptError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for EncryptError
impl Send for EncryptError
impl Sync for EncryptError
impl Unpin for EncryptError
impl UnwindSafe for EncryptError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more