[][src]Struct mundane::public::rsa::RsaPrivKey

pub struct RsaPrivKey<B: RsaKeyBits> { /* fields omitted */ }

A B-bit RSA private key.

RsaPrivKey is an RSA private key which is B bits long.

Methods

impl<B: RsaKeyBits> RsaPrivKey<B>[src]

#[must_use] pub fn generate() -> Result<RsaPrivKey<B>, Error>[src]

Generates a new private key.

Trait Implementations

impl<B: RsaKeyBits> PrivateKey for RsaPrivKey<B>[src]

type Public = RsaPubKey<B>

The type of the public component.

impl<B: RsaKeyBits> DerPrivateKey for RsaPrivKey<B>[src]

impl<B: RsaKeyBits> Debug for RsaPrivKey<B>[src]

Auto Trait Implementations

impl<B> !Send for RsaPrivKey<B>

impl<B> Unpin for RsaPrivKey<B> where
    B: Unpin

impl<B> !Sync for RsaPrivKey<B>

impl<B> RefUnwindSafe for RsaPrivKey<B> where
    B: RefUnwindSafe

impl<B> UnwindSafe for RsaPrivKey<B> where
    B: UnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]