Struct ssh_key::private::DsaPrivateKey
source · [−]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
sourceimpl AsRef<[u8]> for DsaPrivateKey
impl AsRef<[u8]> for DsaPrivateKey
sourceimpl Clone for DsaPrivateKey
impl Clone for DsaPrivateKey
sourcefn clone(&self) -> DsaPrivateKey
fn clone(&self) -> DsaPrivateKey
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl ConstantTimeEq for DsaPrivateKey
Available on crate feature subtle
only.
impl ConstantTimeEq for DsaPrivateKey
Available on crate feature
subtle
only.sourceimpl Debug for DsaPrivateKey
impl Debug for DsaPrivateKey
sourceimpl Decode for DsaPrivateKey
impl Decode for DsaPrivateKey
sourceimpl Drop for DsaPrivateKey
impl Drop for DsaPrivateKey
sourceimpl Encode for DsaPrivateKey
impl Encode for DsaPrivateKey
sourcefn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
sourcefn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer
.sourcefn encoded_len_prefixed(&self) -> Result<usize, Self::Error>
fn encoded_len_prefixed(&self) -> Result<usize, Self::Error>
Return the length of this type after encoding when prepended with a
uint32
length prefix. Read moresourceimpl PartialEq<DsaPrivateKey> for DsaPrivateKey
Available on crate feature subtle
only.
impl PartialEq<DsaPrivateKey> for DsaPrivateKey
Available on crate feature
subtle
only.sourceimpl TryFrom<&DsaPrivateKey> for BigUint
Available on crate feature dsa
only.
impl TryFrom<&DsaPrivateKey> for BigUint
Available on crate feature
dsa
only.sourceimpl TryFrom<&SigningKey> for DsaPrivateKey
Available on crate feature dsa
only.
impl TryFrom<&SigningKey> for DsaPrivateKey
Available on crate feature
dsa
only.sourcefn try_from(key: &SigningKey) -> Result<DsaPrivateKey>
fn try_from(key: &SigningKey) -> Result<DsaPrivateKey>
Performs the conversion.
sourceimpl TryFrom<DsaPrivateKey> for BigUint
Available on crate feature dsa
only.
impl TryFrom<DsaPrivateKey> for BigUint
Available on crate feature
dsa
only.sourceimpl TryFrom<SigningKey> for DsaPrivateKey
Available on crate feature dsa
only.
impl TryFrom<SigningKey> for DsaPrivateKey
Available on crate feature
dsa
only.sourcefn try_from(key: SigningKey) -> Result<DsaPrivateKey>
fn try_from(key: SigningKey) -> Result<DsaPrivateKey>
Performs the conversion.
impl Eq for DsaPrivateKey
Available on crate feature
subtle
only.Auto Trait Implementations
impl RefUnwindSafe for DsaPrivateKey
impl Send for DsaPrivateKey
impl Sync for DsaPrivateKey
impl Unpin for DsaPrivateKey
impl UnwindSafe for DsaPrivateKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more