pub struct Pss<D> {
pub blinded: bool,
pub digest: D,
pub salt_len: Option<usize>,
}Expand description
Digital signatures using PSS padding.
Fields§
§blinded: boolCreate blinded signatures.
digest: DDigest type to use.
salt_len: Option<usize>Salt length. Required for signing, optional for verifying.
Implementations§
Source§impl<D> Pss<D>where
D: Digest,
impl<D> Pss<D>where
D: Digest,
Sourcepub fn new() -> Self
pub fn new() -> Self
New PSS padding for the given digest. Digest output size is used as a salt length.
Sourcepub fn new_with_salt(len: usize) -> Self
pub fn new_with_salt(len: usize) -> Self
New PSS padding for the given digest with a salt value of the given length.
Sourcepub fn new_blinded() -> Self
pub fn new_blinded() -> Self
New PSS padding for blinded signatures (RSA-BSSA) for the given digest. Digest output size is used as a salt length.
Sourcepub fn new_blinded_with_salt(len: usize) -> Self
pub fn new_blinded_with_salt(len: usize) -> Self
New PSS padding for blinded signatures (RSA-BSSA) for the given digest with a salt value of the given length.
Trait Implementations§
Source§impl<D> SignatureScheme for Pss<D>where
D: Digest + FixedOutputReset,
Available on crate feature alloc only.
impl<D> SignatureScheme for Pss<D>where
D: Digest + FixedOutputReset,
Available on crate feature
alloc only.Auto Trait Implementations§
impl<D> Freeze for Pss<D>where
D: Freeze,
impl<D> RefUnwindSafe for Pss<D>where
D: RefUnwindSafe,
impl<D> Send for Pss<D>where
D: Send,
impl<D> Sync for Pss<D>where
D: Sync,
impl<D> Unpin for Pss<D>where
D: Unpin,
impl<D> UnsafeUnpin for Pss<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for Pss<D>where
D: UnwindSafe,
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