pub struct Signed { /* private fields */ }Expand description
An RsaSignature2017 read and hashed, its key not yet tried.
Reading is the expensive half — both hashes are of canonical RDF — so a caller trying more than one copy of a key, a stored one and then a fresh one, reads once.
Implementations§
Source§impl Signed
impl Signed
Sourcepub fn verify(&self, public_key_pem: &str) -> Result<(), Error>
pub fn verify(&self, public_key_pem: &str) -> Result<(), Error>
Whether the key public_key_pem made the signature.
§Errors
Error::Key for a key that is not an RSA public key, and
Error::Invalid when it did not.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signed
impl RefUnwindSafe for Signed
impl Send for Signed
impl Sync for Signed
impl Unpin for Signed
impl UnsafeUnpin for Signed
impl UnwindSafe for Signed
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