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>
Source§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