pub struct KeyObfuscator { /* private fields */ }Expand description
KeyObfuscator is a utility to obfuscate and deobfuscate storage
keys to be used for VSS operations.
It provides client-side deterministic encryption of given keys using ChaCha20-Poly1305.
Implementations§
Source§impl KeyObfuscator
impl KeyObfuscator
Sourcepub fn new(obfuscation_master_key: [u8; 32]) -> KeyObfuscator
pub fn new(obfuscation_master_key: [u8; 32]) -> KeyObfuscator
Constructs a new instance.
Auto Trait Implementations§
impl Freeze for KeyObfuscator
impl RefUnwindSafe for KeyObfuscator
impl Send for KeyObfuscator
impl Sync for KeyObfuscator
impl Unpin for KeyObfuscator
impl UnwindSafe for KeyObfuscator
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