Enum tss_esapi::structures::RsaScheme
source · pub enum RsaScheme {
RsaSsa(HashScheme),
RsaEs,
RsaPss(HashScheme),
Oaep(HashScheme),
Null,
}
Expand description
Enum representing the rsa scheme
§Details
This corresponds to TPMT_RSA_SCHEME. This uses a subset of the TPMU_ASYM_SCHEME that has the TPMI_ALG_RSA_SCHEME as selector.
Variants§
Implementations§
source§impl RsaScheme
impl RsaScheme
sourcepub fn create(
rsa_scheme_algorithm: RsaSchemeAlgorithm,
hashing_algorithm: Option<HashingAlgorithm>
) -> Result<RsaScheme>
pub fn create( rsa_scheme_algorithm: RsaSchemeAlgorithm, hashing_algorithm: Option<HashingAlgorithm> ) -> Result<RsaScheme>
Creates a new RsaScheme
§Errors
InconsistentParams
error will be returned if no hashing algorithm is provided when creating RSA scheme of type RSA SSA, RSA PSS and OAEP or if a hashing algorithm is provided when creating a RSA scheme
sourcepub fn algorithm(&self) -> RsaSchemeAlgorithm
pub fn algorithm(&self) -> RsaSchemeAlgorithm
Returns the rsa scheme algorithm
Trait Implementations§
source§impl From<RsaScheme> for TPMT_RSA_SCHEME
impl From<RsaScheme> for TPMT_RSA_SCHEME
source§impl PartialEq for RsaScheme
impl PartialEq for RsaScheme
source§impl TryFrom<RsaScheme> for RsaDecryptionScheme
impl TryFrom<RsaScheme> for RsaDecryptionScheme
source§impl TryFrom<TPMT_RSA_SCHEME> for RsaScheme
impl TryFrom<TPMT_RSA_SCHEME> for RsaScheme
impl Copy for RsaScheme
impl Eq for RsaScheme
impl StructuralPartialEq for RsaScheme
Auto Trait Implementations§
impl Freeze for RsaScheme
impl RefUnwindSafe for RsaScheme
impl Send for RsaScheme
impl Sync for RsaScheme
impl Unpin for RsaScheme
impl UnwindSafe for RsaScheme
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