Struct mundane::public::rsa::RsaSignature
source · pub struct RsaSignature<B: RsaKeyBits, S: RsaSignatureScheme, H: Hasher> { /* private fields */ }
Expand description
An RSA signature.
RsaSignature
is an RSA signature generated by keys of length B
, using
the signature scheme S
, and the hash function H
.
Implementations§
source§impl<B: RsaKeyBits, S: RsaSignatureScheme, H: Hasher> RsaSignature<B, S, H>
impl<B: RsaKeyBits, S: RsaSignatureScheme, H: Hasher> RsaSignature<B, S, H>
sourcepub fn from_bytes(bytes: &[u8]) -> RsaSignature<B, S, H>
pub fn from_bytes(bytes: &[u8]) -> RsaSignature<B, S, H>
Constructs an RsaSignature
from raw bytes.
Trait Implementations§
source§impl<B: RsaKeyBits, S: RsaSignatureScheme, H: Hasher> Debug for RsaSignature<B, S, H>
impl<B: RsaKeyBits, S: RsaSignatureScheme, H: Hasher> Debug for RsaSignature<B, S, H>
source§impl<B: RsaKeyBits, S: RsaSignatureScheme, H: Hasher> Signature for RsaSignature<B, S, H>
impl<B: RsaKeyBits, S: RsaSignatureScheme, H: Hasher> Signature for RsaSignature<B, S, H>
§type PrivateKey = RsaPrivKey<B>
type PrivateKey = RsaPrivKey<B>
The private key type used to generate this signature.
source§fn sign(
key: &RsaPrivKey<B>,
message: &[u8]
) -> Result<RsaSignature<B, S, H>, Error>
fn sign( key: &RsaPrivKey<B>, message: &[u8] ) -> Result<RsaSignature<B, S, H>, Error>
Sign a message. Read more
Auto Trait Implementations§
impl<B, S, H> Freeze for RsaSignature<B, S, H>
impl<B, S, H> RefUnwindSafe for RsaSignature<B, S, H>
impl<B, S, H> Send for RsaSignature<B, S, H>
impl<B, S, H> Sync for RsaSignature<B, S, H>
impl<B, S, H> Unpin for RsaSignature<B, S, H>
impl<B, S, H> UnwindSafe for RsaSignature<B, S, H>
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