pub struct EncryptedFileStorage { /* private fields */ }Expand description
Encrypted file storage using XChaCha20-Poly1305
File format:
[version: 1 byte][salt: 32 bytes][nonce: 24 bytes][ciphertext+tag: 48 bytes]
Total: 105 bytesRequires ANTQ_HOSTKEY_PASSWORD environment variable to be set.
Implementations§
Trait Implementations§
Source§impl HostKeyStorage for EncryptedFileStorage
impl HostKeyStorage for EncryptedFileStorage
Source§fn backend_name(&self) -> &'static str
fn backend_name(&self) -> &'static str
Get the storage backend name for diagnostics
Source§fn security_level(&self) -> StorageSecurityLevel
fn security_level(&self) -> StorageSecurityLevel
Get the security level of this storage backend
Auto Trait Implementations§
impl Freeze for EncryptedFileStorage
impl RefUnwindSafe for EncryptedFileStorage
impl Send for EncryptedFileStorage
impl Sync for EncryptedFileStorage
impl Unpin for EncryptedFileStorage
impl UnsafeUnpin for EncryptedFileStorage
impl UnwindSafe for EncryptedFileStorage
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