pub enum AsymmetricEncryption {
RsaPkcs1v15Crypt,
RsaOaep {
hash_alg: Hash,
},
}Expand description
Enumeration of asymmetric encryption algorithms supported.
Variants§
Trait Implementations§
Source§impl Clone for AsymmetricEncryption
impl Clone for AsymmetricEncryption
Source§fn clone(&self) -> AsymmetricEncryption
fn clone(&self) -> AsymmetricEncryption
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 moreSource§impl Debug for AsymmetricEncryption
impl Debug for AsymmetricEncryption
Source§impl<'de> Deserialize<'de> for AsymmetricEncryption
impl<'de> Deserialize<'de> for AsymmetricEncryption
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 From<AsymmetricEncryption> for Algorithm
impl From<AsymmetricEncryption> for Algorithm
Source§fn from(alg: AsymmetricEncryption) -> Self
fn from(alg: AsymmetricEncryption) -> Self
Converts to this type from the input type.
Source§impl From<AsymmetricEncryption> for psa_algorithm_t
Available on crate feature interface only.
impl From<AsymmetricEncryption> for psa_algorithm_t
Available on crate feature
interface only.Source§fn from(asym_encrypt: AsymmetricEncryption) -> Self
fn from(asym_encrypt: AsymmetricEncryption) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AsymmetricEncryption
impl PartialEq for AsymmetricEncryption
Source§impl Serialize for AsymmetricEncryption
impl Serialize for AsymmetricEncryption
Source§impl TryFrom<u32> for AsymmetricEncryption
Available on crate feature interface only.
impl TryFrom<u32> for AsymmetricEncryption
Available on crate feature
interface only.Source§impl Zeroize for AsymmetricEncryption
impl Zeroize for AsymmetricEncryption
impl Copy for AsymmetricEncryption
impl Eq for AsymmetricEncryption
impl StructuralPartialEq for AsymmetricEncryption
Auto Trait Implementations§
impl Freeze for AsymmetricEncryption
impl RefUnwindSafe for AsymmetricEncryption
impl Send for AsymmetricEncryption
impl Sync for AsymmetricEncryption
impl Unpin for AsymmetricEncryption
impl UnsafeUnpin for AsymmetricEncryption
impl UnwindSafe for AsymmetricEncryption
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