Struct mundane::public::rsa::RsaPrivKey
source · 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