pub struct PrecomputedKey(/* private fields */);Expand description
A precomputed shared key for public-key cryptography
This key is the result of the Diffie-Hellman key exchange between a public key and a secret key. It can be reused for multiple encryption/decryption operations with the same pair of keys, improving performance.
§Properties
- Size: 32 bytes (256 bits)
- Derived from a public key and a secret key
- Must be kept confidential
- Can be used for multiple encryption/decryption operations
Implementations§
Trait Implementations§
Source§impl AsRef<[u8]> for PrecomputedKey
impl AsRef<[u8]> for PrecomputedKey
Source§impl Clone for PrecomputedKey
impl Clone for PrecomputedKey
Source§fn clone(&self) -> PrecomputedKey
fn clone(&self) -> PrecomputedKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PrecomputedKey
impl Debug for PrecomputedKey
Source§impl Drop for PrecomputedKey
impl Drop for PrecomputedKey
impl Eq for PrecomputedKey
Source§impl PartialEq for PrecomputedKey
impl PartialEq for PrecomputedKey
Source§fn eq(&self, other: &PrecomputedKey) -> bool
fn eq(&self, other: &PrecomputedKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrecomputedKey
Source§impl TryFrom<&[u8]> for PrecomputedKey
impl TryFrom<&[u8]> for PrecomputedKey
Auto Trait Implementations§
impl Freeze for PrecomputedKey
impl RefUnwindSafe for PrecomputedKey
impl Send for PrecomputedKey
impl Sync for PrecomputedKey
impl Unpin for PrecomputedKey
impl UnsafeUnpin for PrecomputedKey
impl UnwindSafe for PrecomputedKey
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