pub enum DecryptMode {
AesCbc,
OaepMd5,
OaepSha1,
OaepSha224,
OaepSha256,
OaepSha384,
OaepSha512,
Pkcs1,
Raw,
}
Expand description
A mode for decrypting a message
Variants§
AesCbc
Decryption using the Advanced Encryption Standard (AES) with Cipher Block Chaining (CBC)
OaepMd5
RSA decryption with Optimal Asymmetric Encryption Padding (OAEP) using an MD-5 hash
OaepSha1
RSA decryption with Optimal Asymmetric Encryption Padding (OAEP) using a SHA-1 hash
OaepSha224
RSA decryption with Optimal Asymmetric Encryption Padding (OAEP) using a SHA-224 hash
OaepSha256
RSA decryption with Optimal Asymmetric Encryption Padding (OAEP) using a SHA-256 hash
OaepSha384
RSA decryption with Optimal Asymmetric Encryption Padding (OAEP) using a SHA-384 hash
OaepSha512
RSA decryption with Optimal Asymmetric Encryption Padding (OAEP) using a SHA-512 hash
Pkcs1
RSA decryption following the PKCS#1 standard
Raw
Raw RSA decryption
Trait Implementations§
source§impl Clone for DecryptMode
impl Clone for DecryptMode
source§fn clone(&self) -> DecryptMode
fn clone(&self) -> DecryptMode
Returns a copy 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 moresource§impl Debug for DecryptMode
impl Debug for DecryptMode
source§impl Default for DecryptMode
impl Default for DecryptMode
source§fn default() -> DecryptMode
fn default() -> DecryptMode
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DecryptMode
impl<'de> Deserialize<'de> for DecryptMode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for DecryptMode
impl Display for DecryptMode
source§impl<'_derivative_strum> From<&'_derivative_strum DecryptMode> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum DecryptMode> for &'static str
source§fn from(x: &'_derivative_strum DecryptMode) -> &'static str
fn from(x: &'_derivative_strum DecryptMode) -> &'static str
Converts to this type from the input type.
source§impl From<DecryptMode> for &'static str
impl From<DecryptMode> for &'static str
source§fn from(x: DecryptMode) -> &'static str
fn from(x: DecryptMode) -> &'static str
Converts to this type from the input type.
source§impl From<DecryptMode> for DecryptMode
impl From<DecryptMode> for DecryptMode
source§fn from(value: DecryptMode) -> Self
fn from(value: DecryptMode) -> Self
Converts to this type from the input type.
source§impl FromStr for DecryptMode
impl FromStr for DecryptMode
source§impl Hash for DecryptMode
impl Hash for DecryptMode
source§impl IntoEnumIterator for DecryptMode
impl IntoEnumIterator for DecryptMode
type Iterator = DecryptModeIter
fn iter() -> DecryptModeIter ⓘ
source§impl Ord for DecryptMode
impl Ord for DecryptMode
source§fn cmp(&self, other: &DecryptMode) -> Ordering
fn cmp(&self, other: &DecryptMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DecryptMode
impl PartialEq for DecryptMode
source§impl PartialOrd for DecryptMode
impl PartialOrd for DecryptMode
source§impl Serialize for DecryptMode
impl Serialize for DecryptMode
source§impl TryFrom<&str> for DecryptMode
impl TryFrom<&str> for DecryptMode
impl Copy for DecryptMode
impl Eq for DecryptMode
impl StructuralPartialEq for DecryptMode
Auto Trait Implementations§
impl Freeze for DecryptMode
impl RefUnwindSafe for DecryptMode
impl Send for DecryptMode
impl Sync for DecryptMode
impl Unpin for DecryptMode
impl UnwindSafe for DecryptMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)