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.
Trait Implementations§
Source§impl Clone for DsaKeypair
impl Clone for DsaKeypair
Source§fn clone(&self) -> DsaKeypair
fn clone(&self) -> DsaKeypair
Returns a duplicate 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 DsaKeypair
impl ConstantTimeEq for DsaKeypair
Source§impl Debug for DsaKeypair
impl Debug for DsaKeypair
Source§impl Decode for DsaKeypair
impl Decode for DsaKeypair
Source§impl Encode for DsaKeypair
impl Encode for DsaKeypair
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 From<&DsaKeypair> for DsaPublicKey
impl From<&DsaKeypair> for DsaPublicKey
Source§fn from(keypair: &DsaKeypair) -> DsaPublicKey
fn from(keypair: &DsaKeypair) -> DsaPublicKey
Converts to this type from the input type.
Source§impl From<DsaKeypair> for DsaPublicKey
impl From<DsaKeypair> for DsaPublicKey
Source§fn from(keypair: DsaKeypair) -> DsaPublicKey
fn from(keypair: DsaKeypair) -> DsaPublicKey
Converts to this type from the input type.
Source§impl From<DsaKeypair> for KeypairData
impl From<DsaKeypair> for KeypairData
Source§fn from(keypair: DsaKeypair) -> KeypairData
fn from(keypair: DsaKeypair) -> KeypairData
Converts to this type from the input type.
Source§impl From<DsaKeypair> for PrivateKey
impl From<DsaKeypair> for PrivateKey
Source§fn from(keypair: DsaKeypair) -> PrivateKey
fn from(keypair: DsaKeypair) -> PrivateKey
Converts to this type from the input type.
Source§impl PartialEq for DsaKeypair
impl PartialEq for DsaKeypair
impl Eq for DsaKeypair
Auto Trait Implementations§
impl Freeze for DsaKeypair
impl RefUnwindSafe for DsaKeypair
impl Send for DsaKeypair
impl Sync for DsaKeypair
impl Unpin for DsaKeypair
impl UnwindSafe for DsaKeypair
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes