[−][src]Struct rcrypto::ecdsa::SignatureContent
(r, s)
Implementations
impl SignatureContent
[src]
pub fn new() -> Self
[src]
pub fn with_capacity(capacity: usize) -> Self
[src]
pub fn form_bigint(r: &BigInt, s: &BigInt) -> Self
[src]
pub fn to_bigint(&self) -> (BigInt, BigInt)
[src]
r, s
pub fn set(&mut self, r: BigInt, s: BigInt)
[src]
Trait Implementations
impl AsMut<[u8]> for SignatureContent
[src]
impl AsMut<Vec<u8>> for SignatureContent
[src]
impl AsRef<[u8]> for SignatureContent
[src]
impl AsRef<Vec<u8>> for SignatureContent
[src]
impl<H, R> Signature<SignatureContent> for DSA<H, R> where
H: Digest,
R: IterSource<u32>,
[src]
H: Digest,
R: IterSource<u32>,
type Output = ()
fn sign(
&mut self,
signature: &mut SignatureContent,
message: &[u8]
) -> Result<Self::Output, CryptoError>
[src]
&mut self,
signature: &mut SignatureContent,
message: &[u8]
) -> Result<Self::Output, CryptoError>
fn verify(
&mut self,
signature: &SignatureContent,
message: &[u8]
) -> Result<Self::Output, CryptoError>
[src]
&mut self,
signature: &SignatureContent,
message: &[u8]
) -> Result<Self::Output, CryptoError>
impl<H, R, C> Signature<SignatureContent> for ECDSA<H, R, C> where
H: Digest,
R: IterSource<u32>,
C: EllipticCurve,
[src]
H: Digest,
R: IterSource<u32>,
C: EllipticCurve,
type Output = ()
fn sign(
&mut self,
signature: &mut SignatureContent,
message: &[u8]
) -> Result<Self::Output, CryptoError>
[src]
&mut self,
signature: &mut SignatureContent,
message: &[u8]
) -> Result<Self::Output, CryptoError>
fn verify(
&mut self,
signature: &SignatureContent,
message: &[u8]
) -> Result<Self::Output, CryptoError>
[src]
&mut self,
signature: &SignatureContent,
message: &[u8]
) -> Result<Self::Output, CryptoError>
Auto Trait Implementations
impl RefUnwindSafe for SignatureContent
impl Send for SignatureContent
impl Sync for SignatureContent
impl Unpin for SignatureContent
impl UnwindSafe for SignatureContent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,