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

pub struct RsaSignature<B: RsaKeyBits, S: RsaSignatureScheme, H: Hasher> { /* fields omitted */ }

An RSA signature.

RsaSignature is an RSA signature generated by keys of length B, using the signature scheme S, and the hash function H.

Methods

impl<B: RsaKeyBits, S: RsaSignatureScheme, H: Hasher> RsaSignature<B, S, H>[src]

#[must_use] pub fn from_bytes(bytes: &[u8]) -> RsaSignature<B, S, H>[src]

Constructs an RsaSignature from raw bytes.

#[must_use] pub fn bytes(&self) -> &[u8][src]

Gets the raw bytes of this RsaSignature.

Trait Implementations

impl<B: RsaKeyBits, S: RsaSignatureScheme, H: Hasher> Signature for RsaSignature<B, S, H>[src]

type PrivateKey = RsaPrivKey<B>

The private key type used to generate this signature.

impl<B: RsaKeyBits, S: RsaSignatureScheme, H: Hasher> Debug for RsaSignature<B, S, H>[src]

Auto Trait Implementations

impl<B, S, H> Send for RsaSignature<B, S, H> where
    B: Send,
    H: Send,
    S: Send

impl<B, S, H> Unpin for RsaSignature<B, S, H> where
    B: Unpin,
    H: Unpin,
    S: Unpin

impl<B, S, H> Sync for RsaSignature<B, S, H> where
    B: Sync,
    H: Sync,
    S: Sync

impl<B, S, H> RefUnwindSafe for RsaSignature<B, S, H> where
    B: RefUnwindSafe,
    H: RefUnwindSafe,
    S: RefUnwindSafe

impl<B, S, H> UnwindSafe for RsaSignature<B, S, H> where
    B: UnwindSafe,
    H: UnwindSafe,
    S: 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]