pub enum RsaDecryptionScheme {
RsaEs,
Oaep(HashScheme),
Null,
}Expand description
Variants§
Implementations§
Source§impl RsaDecryptionScheme
impl RsaDecryptionScheme
Sourcepub fn create(
rsa_decrypt_algorithm: RsaDecryptAlgorithm,
hashing_algorithm: Option<HashingAlgorithm>,
) -> Result<RsaDecryptionScheme>
pub fn create( rsa_decrypt_algorithm: RsaDecryptAlgorithm, hashing_algorithm: Option<HashingAlgorithm>, ) -> Result<RsaDecryptionScheme>
Creates a new rsa decrypt scheme.
§Arguments
rsa_decrypt_algorithm - The RSA decryption algorithm.
hashing_algorithm - The hashing algorithm used in some variants of the scheme.
§Errors
InconsistentParams - If a parameter has been provided when it is not required.
ParamsMissing - If a required parameter has not been provided.
Sourcepub fn algorithm(&self) -> RsaDecryptAlgorithm
pub fn algorithm(&self) -> RsaDecryptAlgorithm
Returns the rsa decrypt scheme algorithm
Trait Implementations§
Source§impl Clone for RsaDecryptionScheme
impl Clone for RsaDecryptionScheme
Source§fn clone(&self) -> RsaDecryptionScheme
fn clone(&self) -> RsaDecryptionScheme
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 RsaDecryptionScheme
impl Debug for RsaDecryptionScheme
Source§impl From<RsaDecryptionScheme> for TPMT_RSA_DECRYPT
impl From<RsaDecryptionScheme> for TPMT_RSA_DECRYPT
Source§fn from(rsa_decryption_scheme: RsaDecryptionScheme) -> Self
fn from(rsa_decryption_scheme: RsaDecryptionScheme) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RsaDecryptionScheme
impl PartialEq for RsaDecryptionScheme
Source§impl TryFrom<RsaScheme> for RsaDecryptionScheme
impl TryFrom<RsaScheme> for RsaDecryptionScheme
impl Copy for RsaDecryptionScheme
impl Eq for RsaDecryptionScheme
impl StructuralPartialEq for RsaDecryptionScheme
Auto Trait Implementations§
impl Freeze for RsaDecryptionScheme
impl RefUnwindSafe for RsaDecryptionScheme
impl Send for RsaDecryptionScheme
impl Sync for RsaDecryptionScheme
impl Unpin for RsaDecryptionScheme
impl UnsafeUnpin for RsaDecryptionScheme
impl UnwindSafe for RsaDecryptionScheme
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