pub struct RsaSigner { /* private fields */ }Expand description
RSA-SHA256 signature algorithm implementation
Implementations§
Source§impl RsaSigner
impl RsaSigner
Sourcepub fn with_key_size(key_size: RsaKeySize) -> Self
pub fn with_key_size(key_size: RsaKeySize) -> Self
Create a new RSA signer with a specific key size
Trait Implementations§
Source§impl SignatureAlgorithm for RsaSigner
impl SignatureAlgorithm for RsaSigner
Source§fn algorithm_id(&self) -> &'static str
fn algorithm_id(&self) -> &'static str
Returns the unique identifier for this algorithm (e.g., “RSA-SHA256”, “Ed25519”)
Source§fn sign(&self, data: &[u8], private_key_pem: &str) -> Result<Vec<u8>>
fn sign(&self, data: &[u8], private_key_pem: &str) -> Result<Vec<u8>>
Sign data with the private key
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