pub struct RsaSigner { /* private fields */ }Expand description
RSA signer.
Implementations§
Source§impl RsaSigner
impl RsaSigner
pub fn generate(key_size: usize) -> Result<Self, SignerError>
pub fn from_pem(pem: &str) -> Result<Self, SignerError>
pub fn to_pem(&self) -> Result<String, SignerError>
pub fn public_key_to_pem(&self) -> Result<String, SignerError>
pub fn verify_with_public_key( data: &[u8], public_key_pem: &[u8], signature: &[u8], ) -> Result<(), SignerError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RsaSigner
impl RefUnwindSafe for RsaSigner
impl Send for RsaSigner
impl Sync for RsaSigner
impl Unpin for RsaSigner
impl UnsafeUnpin for RsaSigner
impl UnwindSafe for RsaSigner
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