Struct pgp::types::ECDHSecretKey
source · [−]pub struct ECDHSecretKey {
pub secret: [u8; 32],
pub hash: HashAlgorithm,
pub oid: Vec<u8>,
pub alg_sym: SymmetricKeyAlgorithm,
}
Expand description
Secret key for ECDH with Curve25519, the only combination we currently support.
Fields
secret: [u8; 32]
The secret point.
hash: HashAlgorithm
oid: Vec<u8>
alg_sym: SymmetricKeyAlgorithm
Trait Implementations
sourceimpl Clone for ECDHSecretKey
impl Clone for ECDHSecretKey
sourcefn clone(&self) -> ECDHSecretKey
fn clone(&self) -> ECDHSecretKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ECDHSecretKey
impl Debug for ECDHSecretKey
sourceimpl Drop for ECDHSecretKey
impl Drop for ECDHSecretKey
sourceimpl PartialEq<ECDHSecretKey> for ECDHSecretKey
impl PartialEq<ECDHSecretKey> for ECDHSecretKey
sourcefn eq(&self, other: &ECDHSecretKey) -> bool
fn eq(&self, other: &ECDHSecretKey) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ECDHSecretKey) -> bool
fn ne(&self, other: &ECDHSecretKey) -> bool
This method tests for !=
.
sourceimpl Zeroize for ECDHSecretKey
impl Zeroize for ECDHSecretKey
impl Eq for ECDHSecretKey
impl StructuralEq for ECDHSecretKey
impl StructuralPartialEq for ECDHSecretKey
Auto Trait Implementations
impl RefUnwindSafe for ECDHSecretKey
impl Send for ECDHSecretKey
impl Sync for ECDHSecretKey
impl Unpin for ECDHSecretKey
impl UnwindSafe for ECDHSecretKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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