pub enum QuantCryptError {
Show 40 variants
FileReadError,
EmptyContent,
FileWriteError,
InvalidRecipientInfo,
SkidNotFound,
InvalidDirectoryPath,
InvalidAesNonce,
InvalidAttribute,
KeyWrapFailed,
KeyUnwrapFailed,
InvalidOid,
InvalidPublicKey,
InvalidPrivateKey,
SerializationFailed,
SignatureVerificationFailed,
SignatureFailed,
InvalidSignature,
KeyPairGenerationFailed,
MissingNotAfter,
MissingSubject,
MissingPublicKey,
BadPrivateKey,
BadPublicKey,
BadSubject,
InvalidHkdfLength,
BadIssuersPublicKey,
BadSerialNumber,
BadExtension,
InvalidNotBefore,
InvalidNotAfter,
InvalidCertificate,
InvalidEnvelopedData,
UnsupportedOperation,
NotImplemented,
InvalidCiphertext,
EncapFailed,
DecapFailed,
Unknown,
InvalidContent,
UnsupportedContentEncryptionAlgorithm,
}
Expand description
Error type for the QuantCrypt library
Variants§
FileReadError
EmptyContent
FileWriteError
InvalidRecipientInfo
SkidNotFound
InvalidDirectoryPath
InvalidAesNonce
InvalidAttribute
KeyWrapFailed
KeyUnwrapFailed
InvalidOid
InvalidPublicKey
InvalidPrivateKey
SerializationFailed
SignatureVerificationFailed
SignatureFailed
InvalidSignature
KeyPairGenerationFailed
MissingNotAfter
MissingSubject
MissingPublicKey
BadPrivateKey
BadPublicKey
BadSubject
InvalidHkdfLength
BadIssuersPublicKey
BadSerialNumber
BadExtension
InvalidNotBefore
InvalidNotAfter
InvalidCertificate
InvalidEnvelopedData
UnsupportedOperation
NotImplemented
InvalidCiphertext
EncapFailed
DecapFailed
Unknown
InvalidContent
UnsupportedContentEncryptionAlgorithm
Trait Implementations§
Source§impl Debug for QuantCryptError
impl Debug for QuantCryptError
Source§impl Display for QuantCryptError
impl Display for QuantCryptError
Source§impl Error for QuantCryptError
impl Error for QuantCryptError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for QuantCryptError
impl PartialEq for QuantCryptError
impl StructuralPartialEq for QuantCryptError
Auto Trait Implementations§
impl Freeze for QuantCryptError
impl RefUnwindSafe for QuantCryptError
impl Send for QuantCryptError
impl Sync for QuantCryptError
impl Unpin for QuantCryptError
impl UnwindSafe for QuantCryptError
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