pub struct RsaPrivateKeySigner {
signing_key: SigningKey<Sha256>,
}Expand description
Creates a signer from an RSA private key using SHA256withRSA.
Equivalent to Signer.from(PrivateKey, “SHA256withRSA”) in Minecraft.
Fields§
§signing_key: SigningKey<Sha256>Implementations§
Trait Implementations§
Source§impl Signer for RsaPrivateKeySigner
impl Signer for RsaPrivateKeySigner
Source§fn sign(&self, updater: &dyn SignatureUpdater) -> Result<Vec<u8>, CryptError>
fn sign(&self, updater: &dyn SignatureUpdater) -> Result<Vec<u8>, CryptError>
Signs the data provided by the updater and returns the signature bytes.
Auto Trait Implementations§
impl Freeze for RsaPrivateKeySigner
impl RefUnwindSafe for RsaPrivateKeySigner
impl Send for RsaPrivateKeySigner
impl Sync for RsaPrivateKeySigner
impl Unpin for RsaPrivateKeySigner
impl UnsafeUnpin for RsaPrivateKeySigner
impl UnwindSafe for RsaPrivateKeySigner
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