pub struct SecretKey(/* private fields */);Expand description
A secret key for asymmetric encryption using X25519
This key is used for decrypting messages and must be kept private. It is randomly generated and used to derive the corresponding public key.
§Properties
- Size: 32 bytes (256 bits)
- Based on the X25519 elliptic curve
- Must be kept confidential
- Used to decrypt messages that were encrypted with the corresponding public key
Implementations§
Trait Implementations§
impl Eq for SecretKey
impl StructuralPartialEq for SecretKey
Auto Trait Implementations§
impl Freeze for SecretKey
impl RefUnwindSafe for SecretKey
impl Send for SecretKey
impl Sync for SecretKey
impl Unpin for SecretKey
impl UnsafeUnpin for SecretKey
impl UnwindSafe for SecretKey
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