[−][src]Struct mundane::public::rsa::RsaSignature
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.
fn sign(
key: &RsaPrivKey<B>,
message: &[u8]
) -> Result<RsaSignature<B, S, H>, Error>
[src]
key: &RsaPrivKey<B>,
message: &[u8]
) -> Result<RsaSignature<B, S, H>, Error>
fn is_valid(&self, key: &RsaPubKey<B>, message: &[u8]) -> bool
[src]
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,
B: Send,
H: Send,
S: Send,
impl<B, S, H> Unpin for RsaSignature<B, S, H> where
B: Unpin,
H: Unpin,
S: Unpin,
B: Unpin,
H: Unpin,
S: Unpin,
impl<B, S, H> Sync for RsaSignature<B, S, H> where
B: Sync,
H: Sync,
S: Sync,
B: Sync,
H: Sync,
S: Sync,
impl<B, S, H> RefUnwindSafe for RsaSignature<B, S, H> where
B: RefUnwindSafe,
H: RefUnwindSafe,
S: RefUnwindSafe,
B: RefUnwindSafe,
H: RefUnwindSafe,
S: RefUnwindSafe,
impl<B, S, H> UnwindSafe for RsaSignature<B, S, H> where
B: UnwindSafe,
H: UnwindSafe,
S: UnwindSafe,
B: UnwindSafe,
H: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,