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§
source§impl Clone for ECDHSecretKey
impl Clone for ECDHSecretKey
source§fn clone(&self) -> ECDHSecretKey
fn clone(&self) -> ECDHSecretKey
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 ECDHSecretKey
impl Debug for ECDHSecretKey
source§impl Drop for ECDHSecretKey
impl Drop for ECDHSecretKey
source§impl PartialEq for ECDHSecretKey
impl PartialEq for ECDHSecretKey
source§fn 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 ==
.source§impl Zeroize for ECDHSecretKey
impl Zeroize for ECDHSecretKey
impl Eq for ECDHSecretKey
impl StructuralPartialEq for ECDHSecretKey
Auto Trait Implementations§
impl Freeze for ECDHSecretKey
impl RefUnwindSafe for ECDHSecretKey
impl Send for ECDHSecretKey
impl Sync for ECDHSecretKey
impl Unpin for ECDHSecretKey
impl UnwindSafe for ECDHSecretKey
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