Struct cryptoki::mechanism::rsa::PkcsPssParams
source · #[repr(C)]pub struct PkcsPssParams {
pub hash_alg: MechanismType,
pub mgf: PkcsMgfType,
pub s_len: Ulong,
}
Expand description
Parameters of the RsaPkcsPss mechanism
Fields§
§hash_alg: MechanismType
hash algorithm used in the PSS encoding; if the signature mechanism does not include message hashing, then this value must be the mechanism used by the application to generate the message hash; if the signature mechanism includes hashing, then this value must match the hash algorithm indicated by the signature mechanism
mgf: PkcsMgfType
mask generation function to use on the encoded block
s_len: Ulong
length, in bytes, of the salt value used in the PSS encoding; typical values are the length of the message hash and zero
Trait Implementations§
source§impl Clone for PkcsPssParams
impl Clone for PkcsPssParams
source§fn clone(&self) -> PkcsPssParams
fn clone(&self) -> PkcsPssParams
Returns a copy 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 PkcsPssParams
impl Debug for PkcsPssParams
impl Copy for PkcsPssParams
Auto Trait Implementations§
impl Freeze for PkcsPssParams
impl RefUnwindSafe for PkcsPssParams
impl Send for PkcsPssParams
impl Sync for PkcsPssParams
impl Unpin for PkcsPssParams
impl UnwindSafe for PkcsPssParams
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