#[non_exhaustive]pub enum ProviderInputError {
PrimitiveInitialization(&'static str),
AesCbcFraming,
AesCbcCiphertext,
AesGcmFraming,
AesKeyWrapFraming,
LegacyRsaOaepMgf,
}Expand description
Structured invalid-input reasons returned by cryptographic providers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PrimitiveInitialization(&'static str)
A primitive rejected a key or IV after its public preconditions were checked.
AesCbcFraming
AES-CBC input does not contain an IV followed by complete blocks.
AesCbcCiphertext
AES-CBC block decryption failed.
AesGcmFraming
AES-GCM input does not contain a nonce and authentication tag.
AesKeyWrapFraming
AES key-wrap input or output framing is invalid.
LegacyRsaOaepMgf
The legacy RSA-OAEP URI requires MGF1-SHA1.
Trait Implementations§
Source§impl Clone for ProviderInputError
impl Clone for ProviderInputError
Source§fn clone(&self) -> ProviderInputError
fn clone(&self) -> ProviderInputError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderInputError
impl Debug for ProviderInputError
Source§impl Display for ProviderInputError
impl Display for ProviderInputError
impl Eq for ProviderInputError
Source§impl Error for ProviderInputError
impl Error for ProviderInputError
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 ProviderInputError
impl PartialEq for ProviderInputError
impl StructuralPartialEq for ProviderInputError
Auto Trait Implementations§
impl Freeze for ProviderInputError
impl RefUnwindSafe for ProviderInputError
impl Send for ProviderInputError
impl Sync for ProviderInputError
impl Unpin for ProviderInputError
impl UnsafeUnpin for ProviderInputError
impl UnwindSafe for ProviderInputError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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