pub struct EncryptionKey {
pub pubk: [u8; 32],
pub salt: [u8; 16],
}Expand description
A Public Key & Salt pair that can be used for simmetric encryption, compatible with ChaCha20Poly1305
§Example
use walleth::EncryptionKey;
let key = EncryptionKey::new(b"password", 1000); // 1000 roundsFields§
§pubk: [u8; 32]§salt: [u8; 16]Implementations§
Source§impl EncryptionKey
impl EncryptionKey
Auto Trait Implementations§
impl Freeze for EncryptionKey
impl RefUnwindSafe for EncryptionKey
impl Send for EncryptionKey
impl Sync for EncryptionKey
impl Unpin for EncryptionKey
impl UnwindSafe for EncryptionKey
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