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