src/backup/data_blob.rs - DataBlobReader: implement reader for encrtypted blobs

This commit is contained in:
Dietmar Maurer
2019-08-13 13:07:13 +02:00
parent d03d3fa04e
commit 2aa0bfff59
2 changed files with 79 additions and 0 deletions

View File

@ -51,6 +51,11 @@ impl CryptConfig {
Ok(Self { id_key, id_pkey, enc_key, cipher: Cipher::aes_256_gcm() })
}
/// Expose Cipher
pub fn cipher(&self) -> &Cipher {
&self.cipher
}
/// Compute a chunk digest using a secret name space.
///
/// Computes an SHA256 checksum over some secret data (derived