Skip to main content

RsaOaepParamsRef

Type Alias RsaOaepParamsRef 

Source
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>

Source

pub fn new<D>() -> Self
where D: AssociatedOid,

Create new RsaOaepParams for the provided digest and default (empty) label

Source

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