pub struct DsaPrivateKey { /* private fields */ }Available on crate feature
alloc only.Expand description
Digital Signature Algorithm (DSA) private key.
Uniformly random integer x, such that 0 < x < q, i.e. x is in the
range [1, q–1].
Described in FIPS 186-4 § 4.1.
Implementations§
Source§impl DsaPrivateKey
impl DsaPrivateKey
Trait Implementations§
Source§impl AsRef<[u8]> for DsaPrivateKey
impl AsRef<[u8]> for DsaPrivateKey
Source§impl Clone for DsaPrivateKey
impl Clone for DsaPrivateKey
Source§fn clone(&self) -> DsaPrivateKey
fn clone(&self) -> DsaPrivateKey
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 CtEq for DsaPrivateKey
impl CtEq for DsaPrivateKey
Source§impl Debug for DsaPrivateKey
impl Debug for DsaPrivateKey
Source§impl Decode for DsaPrivateKey
impl Decode for DsaPrivateKey
Source§impl Drop for DsaPrivateKey
impl Drop for DsaPrivateKey
Source§impl Encode for DsaPrivateKey
impl Encode for DsaPrivateKey
Source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding. Read more
Source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
Return the length of this type after encoding when prepended with a
uint32 length prefix. Read moreSource§impl From<&SigningKey> for DsaPrivateKey
Available on crate feature dsa only.
impl From<&SigningKey> for DsaPrivateKey
Available on crate feature
dsa only.Source§fn from(key: &SigningKey) -> DsaPrivateKey
fn from(key: &SigningKey) -> DsaPrivateKey
Converts to this type from the input type.
Source§impl From<SigningKey> for DsaPrivateKey
Available on crate feature dsa only.
impl From<SigningKey> for DsaPrivateKey
Available on crate feature
dsa only.Source§fn from(key: SigningKey) -> DsaPrivateKey
fn from(key: SigningKey) -> DsaPrivateKey
Converts to this type from the input type.
Source§impl PartialEq for DsaPrivateKey
impl PartialEq for DsaPrivateKey
Source§impl TryFrom<&DsaPrivateKey> for Uint
Available on crate feature dsa only.
impl TryFrom<&DsaPrivateKey> for Uint
Available on crate feature
dsa only.Source§impl TryFrom<DsaPrivateKey> for Uint
Available on crate feature dsa only.
impl TryFrom<DsaPrivateKey> for Uint
Available on crate feature
dsa only.Source§impl TryFrom<Mpint> for DsaPrivateKey
impl TryFrom<Mpint> for DsaPrivateKey
impl Eq for DsaPrivateKey
Auto Trait Implementations§
impl Freeze for DsaPrivateKey
impl RefUnwindSafe for DsaPrivateKey
impl Send for DsaPrivateKey
impl Sync for DsaPrivateKey
impl Unpin for DsaPrivateKey
impl UnsafeUnpin for DsaPrivateKey
impl UnwindSafe for DsaPrivateKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)