pub struct RsassaPssParams {
pub hash_algorithm: HashAlgorithm,
pub mask_gen_algorithm: MaskGenAlgorithm,
pub salt_length: usize,
}
Expand description
RSASSA-PSS-params ::= SEQUENCE {
hashAlgorithm [0] HashAlgorithm DEFAULT
sha1Identifier,
maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT
mgf1SHA1Identifier,
saltLength [2] INTEGER DEFAULT 20,
trailerField [3] INTEGER DEFAULT 1 }
Implementations that perform signature generation MUST omit the trailerField field, indicating that the default trailer field value was used… thus the reason no trailer field is specified in this structure.
Fields§
§hash_algorithm: HashAlgorithm
§mask_gen_algorithm: MaskGenAlgorithm
§salt_length: usize
Implementations§
source§impl RsassaPssParams
impl RsassaPssParams
pub fn new(hash_algorithm: HashAlgorithm) -> Self
Trait Implementations§
source§impl Clone for RsassaPssParams
impl Clone for RsassaPssParams
source§fn clone(&self) -> RsassaPssParams
fn clone(&self) -> RsassaPssParams
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 RsassaPssParams
impl Debug for RsassaPssParams
source§impl<'de> Deserialize<'de> for RsassaPssParams
impl<'de> Deserialize<'de> for RsassaPssParams
source§fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for RsassaPssParams
impl PartialEq for RsassaPssParams
source§fn eq(&self, other: &RsassaPssParams) -> bool
fn eq(&self, other: &RsassaPssParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RsassaPssParams
impl Serialize for RsassaPssParams
source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for RsassaPssParams
impl StructuralPartialEq for RsassaPssParams
Auto Trait Implementations§
impl Freeze for RsassaPssParams
impl RefUnwindSafe for RsassaPssParams
impl Send for RsassaPssParams
impl Sync for RsassaPssParams
impl Unpin for RsassaPssParams
impl UnwindSafe for RsassaPssParams
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)