Struct ssh_key::private::DsaKeypair
source · [−]pub struct DsaKeypair {
pub public: DsaPublicKey,
pub private: DsaPrivateKey,
}
Available on crate feature
alloc
only.Expand description
Digital Signature Algorithm (DSA) private/public keypair.
Fields
public: DsaPublicKey
Public key.
private: DsaPrivateKey
Private key.
Implementations
Trait Implementations
sourceimpl Clone for DsaKeypair
impl Clone for DsaKeypair
sourcefn clone(&self) -> DsaKeypair
fn clone(&self) -> DsaKeypair
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 DsaKeypair
Available on crate feature subtle
only.
impl ConstantTimeEq for DsaKeypair
Available on crate feature
subtle
only.sourceimpl Debug for DsaKeypair
impl Debug for DsaKeypair
sourceimpl Decode for DsaKeypair
impl Decode for DsaKeypair
sourceimpl Encode for DsaKeypair
impl Encode for DsaKeypair
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 From<&DsaKeypair> for DsaPublicKey
impl From<&DsaKeypair> for DsaPublicKey
sourcefn from(keypair: &DsaKeypair) -> DsaPublicKey
fn from(keypair: &DsaKeypair) -> DsaPublicKey
Converts to this type from the input type.
sourceimpl From<DsaKeypair> for DsaPublicKey
impl From<DsaKeypair> for DsaPublicKey
sourcefn from(keypair: DsaKeypair) -> DsaPublicKey
fn from(keypair: DsaKeypair) -> DsaPublicKey
Converts to this type from the input type.
sourceimpl From<DsaKeypair> for KeypairData
impl From<DsaKeypair> for KeypairData
sourcefn from(keypair: DsaKeypair) -> KeypairData
fn from(keypair: DsaKeypair) -> KeypairData
Converts to this type from the input type.
sourceimpl From<DsaKeypair> for PrivateKey
impl From<DsaKeypair> for PrivateKey
sourcefn from(keypair: DsaKeypair) -> PrivateKey
fn from(keypair: DsaKeypair) -> PrivateKey
Converts to this type from the input type.
sourceimpl PartialEq<DsaKeypair> for DsaKeypair
Available on crate feature subtle
only.
impl PartialEq<DsaKeypair> for DsaKeypair
Available on crate feature
subtle
only.sourceimpl Signer<Signature> for DsaKeypair
Available on crate feature dsa
only.
impl Signer<Signature> for DsaKeypair
Available on crate feature
dsa
only.sourceimpl TryFrom<&DsaKeypair> for SigningKey
Available on crate feature dsa
only.
impl TryFrom<&DsaKeypair> for SigningKey
Available on crate feature
dsa
only.sourcefn try_from(key: &DsaKeypair) -> Result<SigningKey>
fn try_from(key: &DsaKeypair) -> Result<SigningKey>
Performs the conversion.
sourceimpl TryFrom<&SigningKey> for DsaKeypair
Available on crate feature dsa
only.
impl TryFrom<&SigningKey> for DsaKeypair
Available on crate feature
dsa
only.sourcefn try_from(key: &SigningKey) -> Result<DsaKeypair>
fn try_from(key: &SigningKey) -> Result<DsaKeypair>
Performs the conversion.
sourceimpl TryFrom<DsaKeypair> for SigningKey
Available on crate feature dsa
only.
impl TryFrom<DsaKeypair> for SigningKey
Available on crate feature
dsa
only.sourcefn try_from(key: DsaKeypair) -> Result<SigningKey>
fn try_from(key: DsaKeypair) -> Result<SigningKey>
Performs the conversion.
sourceimpl TryFrom<SigningKey> for DsaKeypair
Available on crate feature dsa
only.
impl TryFrom<SigningKey> for DsaKeypair
Available on crate feature
dsa
only.sourcefn try_from(key: SigningKey) -> Result<DsaKeypair>
fn try_from(key: SigningKey) -> Result<DsaKeypair>
Performs the conversion.
impl Eq for DsaKeypair
Available on crate feature
subtle
only.Auto Trait Implementations
impl RefUnwindSafe for DsaKeypair
impl Send for DsaKeypair
impl Sync for DsaKeypair
impl Unpin for DsaKeypair
impl UnwindSafe for DsaKeypair
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