pub struct RsaPssPublicKey { /* private fields */ }
Expand description
A [Algorithm::RsaPss
] public key.
Implementations§
Source§impl RsaPssPublicKey
impl RsaPssPublicKey
pub fn new(key_size: RsaPssKeySize, n: &[u8]) -> Result<Self, Error>
Sourcepub fn verify(
&self,
hash_algorithm: DigestAlgorithm,
signature: &RsaPssSignature,
msg: &[u8],
salt_len: usize,
) -> Result<(), Error>
pub fn verify( &self, hash_algorithm: DigestAlgorithm, signature: &RsaPssSignature, msg: &[u8], salt_len: usize, ) -> Result<(), Error>
Verify the signature
on the msg
with the public_key
using the
hash_algorithm
and salt_len
.
Returns an error if any of the inputs are invalid or the signature is invalid.
Trait Implementations§
Source§impl Clone for RsaPssPublicKey
impl Clone for RsaPssPublicKey
Source§fn clone(&self) -> RsaPssPublicKey
fn clone(&self) -> RsaPssPublicKey
Returns a duplicate 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 RsaPssPublicKey
impl Debug for RsaPssPublicKey
Source§impl PartialEq for RsaPssPublicKey
impl PartialEq for RsaPssPublicKey
impl Eq for RsaPssPublicKey
impl StructuralPartialEq for RsaPssPublicKey
Auto Trait Implementations§
impl Freeze for RsaPssPublicKey
impl RefUnwindSafe for RsaPssPublicKey
impl Send for RsaPssPublicKey
impl Sync for RsaPssPublicKey
impl Unpin for RsaPssPublicKey
impl UnwindSafe for RsaPssPublicKey
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