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§
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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ConstantTimeEq for DsaPrivateKey
impl ConstantTimeEq 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.
source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer
.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.source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value, first prepending a
uint32
length prefix
set to Encode::encoded_len
.source§impl PartialEq for DsaPrivateKey
impl PartialEq for DsaPrivateKey
source§impl TryFrom<&DsaPrivateKey> for BigUint
Available on crate feature dsa
only.
impl TryFrom<&DsaPrivateKey> for BigUint
Available on crate feature
dsa
only.source§impl TryFrom<&SigningKey> for DsaPrivateKey
Available on crate feature dsa
only.
impl TryFrom<&SigningKey> for DsaPrivateKey
Available on crate feature
dsa
only.source§fn try_from(key: &SigningKey) -> Result<DsaPrivateKey>
fn try_from(key: &SigningKey) -> Result<DsaPrivateKey>
Performs the conversion.
source§impl TryFrom<DsaPrivateKey> for BigUint
Available on crate feature dsa
only.
impl TryFrom<DsaPrivateKey> for BigUint
Available on crate feature
dsa
only.source§impl TryFrom<SigningKey> for DsaPrivateKey
Available on crate feature dsa
only.
impl TryFrom<SigningKey> for DsaPrivateKey
Available on crate feature
dsa
only.source§fn try_from(key: SigningKey) -> Result<DsaPrivateKey>
fn try_from(key: SigningKey) -> Result<DsaPrivateKey>
Performs the conversion.
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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)