Struct x509_parser::signature_algorithm::RsaAesOaepParams
source · [−]pub struct RsaAesOaepParams<'a> { /* private fields */ }
Implementations
sourceimpl<'a> RsaAesOaepParams<'a>
impl<'a> RsaAesOaepParams<'a>
pub const EMPTY: &'static AlgorithmIdentifier<'static> = &AlgorithmIdentifier::new( oid! {1.2.840.113549.1.1.9}, // id-pSpecified None, )
sourcepub fn hash_algorithm(&self) -> Option<&AlgorithmIdentifier<'_>>
pub fn hash_algorithm(&self) -> Option<&AlgorithmIdentifier<'_>>
Get a reference to the rsa aes oaep params’s hash algorithm.
sourcepub fn hash_algorithm_oid(&self) -> &'a Oid<'_>
pub fn hash_algorithm_oid(&self) -> &'a Oid<'_>
Return the hash algorithm OID, or SHA1 if absent (RFC4055)
sourcepub fn mask_gen_algorithm_raw(&self) -> Option<&AlgorithmIdentifier<'_>>
pub fn mask_gen_algorithm_raw(&self) -> Option<&AlgorithmIdentifier<'_>>
Get a reference to the rsa ssa pss params’s mask generation algorithm.
sourcepub fn mask_gen_algorithm(&self) -> Result<MaskGenAlgorithm<'_, '_>, X509Error>
pub fn mask_gen_algorithm(&self) -> Result<MaskGenAlgorithm<'_, '_>, X509Error>
Get the rsa ssa pss params’s mask generation algorithm.
If the algorithm encoding is invalid, raise an error InvalidAlgorithmIdentifier
sourcepub fn p_source_alg(&'a self) -> &'a AlgorithmIdentifier<'_>
pub fn p_source_alg(&'a self) -> &'a AlgorithmIdentifier<'_>
Return the pSourceFunc algorithm
Trait Implementations
sourceimpl CheckDerConstraints for RsaAesOaepParams<'_>
impl CheckDerConstraints for RsaAesOaepParams<'_>
fn check_constraints(any: &Any<'_>) -> Result<()>
sourceimpl<'a> Debug for RsaAesOaepParams<'a>
impl<'a> Debug for RsaAesOaepParams<'a>
sourceimpl<'a> PartialEq<RsaAesOaepParams<'a>> for RsaAesOaepParams<'a>
impl<'a> PartialEq<RsaAesOaepParams<'a>> for RsaAesOaepParams<'a>
sourcefn eq(&self, other: &RsaAesOaepParams<'a>) -> bool
fn eq(&self, other: &RsaAesOaepParams<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RsaAesOaepParams<'a>) -> bool
fn ne(&self, other: &RsaAesOaepParams<'a>) -> bool
This method tests for !=
.
sourceimpl<'a, 'b> TryFrom<&'b Any<'a>> for RsaAesOaepParams<'a>
impl<'a, 'b> TryFrom<&'b Any<'a>> for RsaAesOaepParams<'a>
sourceimpl<'a> TryFrom<Any<'a>> for RsaAesOaepParams<'a>
impl<'a> TryFrom<Any<'a>> for RsaAesOaepParams<'a>
impl DerAutoDerive for RsaAesOaepParams<'_>
impl<'a> StructuralPartialEq for RsaAesOaepParams<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for RsaAesOaepParams<'a>
impl<'a> Send for RsaAesOaepParams<'a>
impl<'a> Sync for RsaAesOaepParams<'a>
impl<'a> Unpin for RsaAesOaepParams<'a>
impl<'a> UnwindSafe for RsaAesOaepParams<'a>
Blanket Implementations
sourceimpl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
sourceimpl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more