Struct pgp::native::types::EdDSASecretKey
source · pub struct EdDSASecretKey {
pub secret: [u8; 32],
pub oid: Vec<u8, Global>,
}
Expand description
Secret key for EdDSA with Curve25519, the only combination we currently support.
Fields§
§secret: [u8; 32]
The secret point.
oid: Vec<u8, Global>
Trait Implementations§
source§impl Clone for EdDSASecretKey
impl Clone for EdDSASecretKey
source§fn clone(&self) -> EdDSASecretKey
fn clone(&self) -> EdDSASecretKey
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 Debug for EdDSASecretKey
impl Debug for EdDSASecretKey
source§impl Drop for EdDSASecretKey
impl Drop for EdDSASecretKey
source§impl PartialEq<EdDSASecretKey> for EdDSASecretKey
impl PartialEq<EdDSASecretKey> for EdDSASecretKey
source§fn eq(&self, other: &EdDSASecretKey) -> bool
fn eq(&self, other: &EdDSASecretKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Zeroize for EdDSASecretKey
impl Zeroize for EdDSASecretKey
impl Eq for EdDSASecretKey
impl StructuralEq for EdDSASecretKey
impl StructuralPartialEq for EdDSASecretKey
Auto Trait Implementations§
impl RefUnwindSafe for EdDSASecretKey
impl Send for EdDSASecretKey
impl Sync for EdDSASecretKey
impl Unpin for EdDSASecretKey
impl UnwindSafe for EdDSASecretKey
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.