pub struct RsaPrivKey<B: RsaKeyBits> { /* private fields */ }
Expand description
A B
-bit RSA private key.
RsaPrivKey
is an RSA private key which is B
bits long.
Implementations§
Source§impl<B: RsaKeyBits> RsaPrivKey<B>
impl<B: RsaKeyBits> RsaPrivKey<B>
Sourcepub fn generate() -> Result<RsaPrivKey<B>, Error>
pub fn generate() -> Result<RsaPrivKey<B>, Error>
Generates a new private key.
Trait Implementations§
Source§impl<B: RsaKeyBits> Debug for RsaPrivKey<B>
impl<B: RsaKeyBits> Debug for RsaPrivKey<B>
Source§impl<B: RsaKeyBits> DerPrivateKey for RsaPrivKey<B>
impl<B: RsaKeyBits> DerPrivateKey for RsaPrivKey<B>
Source§impl<B: RsaKeyBits> PrivateKey for RsaPrivKey<B>
impl<B: RsaKeyBits> PrivateKey for RsaPrivKey<B>
Auto Trait Implementations§
impl<B> Freeze for RsaPrivKey<B>
impl<B> RefUnwindSafe for RsaPrivKey<B>where
B: RefUnwindSafe,
impl<B> !Send for RsaPrivKey<B>
impl<B> !Sync for RsaPrivKey<B>
impl<B> Unpin for RsaPrivKey<B>where
B: Unpin,
impl<B> UnwindSafe for RsaPrivKey<B>where
B: UnwindSafe,
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