pub type RsaOaepParamsRef<'a> = RsaOaepParams<AnyRef<'a>>;Expand description
Aliased Type§
pub struct RsaOaepParamsRef<'a> {
pub hash: AlgorithmIdentifier<AnyRef<'a>>,
pub mask_gen: AlgorithmIdentifier<AlgorithmIdentifier<AnyRef<'a>>>,
pub p_source: AlgorithmIdentifier<AnyRef<'a>>,
}Fields§
§hash: AlgorithmIdentifier<AnyRef<'a>>Hash Algorithm
mask_gen: AlgorithmIdentifier<AlgorithmIdentifier<AnyRef<'a>>>Mask Generation Function (MGF)
p_source: AlgorithmIdentifier<AnyRef<'a>>The source (and possibly the value) of the label L
Implementations§
Source§impl<'a> RsaOaepParamsRef<'a>
impl<'a> RsaOaepParamsRef<'a>
Sourcepub fn new<D>() -> Selfwhere
D: AssociatedOid,
pub fn new<D>() -> Selfwhere
D: AssociatedOid,
Create new RsaOaepParams for the provided digest and default (empty) label
Sourcepub fn new_with_label<D>(label: &'a impl AsRef<[u8]>) -> RsaOaepParamsRef<'a>where
D: AssociatedOid,
pub fn new_with_label<D>(label: &'a impl AsRef<[u8]>) -> RsaOaepParamsRef<'a>where
D: AssociatedOid,
Create new RsaOaepParams for the provided digest and specified label