pub struct RsaSigningKey(pub RsaPrivateKey);Expand description
An RSA signing key.
Tuple Fields§
§0: RsaPrivateKeyImplementations§
Source§impl RsaSigningKey
impl RsaSigningKey
Sourcepub fn sign<S: SignatureScheme, D: Digest>(&self, message: &[u8]) -> Vec<u8> ⓘ
pub fn sign<S: SignatureScheme, D: Digest>(&self, message: &[u8]) -> Vec<u8> ⓘ
Sign the message using this key, the digest algorithm, and the signature scheme provided.
§Panics
- If the provided signature scheme or digest would produce and invalid output.
Sourcepub fn verifying_key(&self) -> RsaVerifyingKey
pub fn verifying_key(&self) -> RsaVerifyingKey
Get the verifying key for this signing key.
Auto Trait Implementations§
impl Freeze for RsaSigningKey
impl RefUnwindSafe for RsaSigningKey
impl Send for RsaSigningKey
impl Sync for RsaSigningKey
impl Unpin for RsaSigningKey
impl UnwindSafe for RsaSigningKey
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