pub enum EncryptionMode {
None,
Authenticated(String),
AuthenticatedBlake2(String),
Repokey(String),
Keyfile(String),
RepokeyBlake2(String),
KeyfileBlake2(String),
}
Expand description
The encryption mode of the repository.
See https://borgbackup.readthedocs.io/en/stable/usage/init.html#more-encryption-modes for further information about encryption modes.
Variants§
None
No encryption, nor hashing.
This mode is not recommended.
Authenticated(String)
Uses no encryption, but authenticates repository contents through HMAC-SHA256 hashes
AuthenticatedBlake2(String)
Uses no encryption, but authenticates repository contents through keyed BLAKE2b-256 hashes
Repokey(String)
Use AES-CTR-256 for encryption and HMAC-SHA256 for authentication in an encrypt-then-MAC (EtM) construction.
The chunk ID hash is HMAC-SHA256 as well (with a separate key).
Stores the key in the repository.
Keyfile(String)
Use AES-CTR-256 for encryption and HMAC-SHA256 for authentication in an encrypt-then-MAC (EtM) construction.
The chunk ID hash is HMAC-SHA256 as well (with a separate key).
Stores the key locally.
RepokeyBlake2(String)
Use AES-CTR-256 for encryption and BLAKE2b-256 for authentication in an encrypt-then-MAC (EtM) construction.
The chunk ID hash is a keyed BLAKE2b-256 hash.
Stores the key in the repository.
KeyfileBlake2(String)
Use AES-CTR-256 for encryption and BLAKE2b-256 for authentication in an encrypt-then-MAC (EtM) construction.
The chunk ID hash is a keyed BLAKE2b-256 hash.
Stores the key locally.
Trait Implementations§
Source§impl Clone for EncryptionMode
impl Clone for EncryptionMode
Source§fn clone(&self) -> EncryptionMode
fn clone(&self) -> EncryptionMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more