pub struct Pss {
pub blinded: bool,
pub digest: Box<dyn DynDigest + Send + Sync>,
pub salt_len: usize,
}
Expand description
Digital signatures using PSS padding.
Fields§
§blinded: bool
Create blinded signatures.
digest: Box<dyn DynDigest + Send + Sync>
Digest type to use.
salt_len: usize
Salt length.
Implementations§
source§impl Pss
impl Pss
sourcepub fn new<T: 'static + Digest + DynDigest + Send + Sync>() -> Self
pub fn new<T: 'static + Digest + DynDigest + Send + Sync>() -> Self
New PSS padding for the given digest. Digest output size is used as a salt length.
sourcepub fn new_with_salt<T: 'static + Digest + DynDigest + Send + Sync>(
len: usize,
) -> Self
pub fn new_with_salt<T: 'static + Digest + DynDigest + Send + Sync>( len: usize, ) -> Self
New PSS padding for the given digest with a salt value of the given length.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pss
impl !RefUnwindSafe for Pss
impl Send for Pss
impl Sync for Pss
impl Unpin for Pss
impl !UnwindSafe for Pss
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