pub struct DsaSignature { /* private fields */ }Expand description
Raw DSA signature pair (r, s).
Implementations§
Source§impl DsaSignature
impl DsaSignature
Sourcepub fn to_key_blob(&self) -> Vec<u8> ⓘ
pub fn to_key_blob(&self) -> Vec<u8> ⓘ
Encode the signature as a DER SEQUENCE of (r, s).
Sourcepub fn from_key_blob(blob: &[u8]) -> Option<Self>
pub fn from_key_blob(blob: &[u8]) -> Option<Self>
Decode a crate-defined binary DSA signature.
Zero values are rejected immediately. The range checks against the
subgroup order q happen during verification because the signature
encoding does not carry q.
Trait Implementations§
Source§impl Clone for DsaSignature
impl Clone for DsaSignature
Source§fn clone(&self) -> DsaSignature
fn clone(&self) -> DsaSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DsaSignature
impl Debug for DsaSignature
Source§impl PartialEq for DsaSignature
impl PartialEq for DsaSignature
Source§fn eq(&self, other: &DsaSignature) -> bool
fn eq(&self, other: &DsaSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DsaSignature
impl StructuralPartialEq for DsaSignature
Auto Trait Implementations§
impl Freeze for DsaSignature
impl RefUnwindSafe for DsaSignature
impl Send for DsaSignature
impl Sync for DsaSignature
impl Unpin for DsaSignature
impl UnsafeUnpin for DsaSignature
impl UnwindSafe for DsaSignature
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