From 046bcb9773ed4425973b315083db84fcb43d4536 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 13 Jun 2019 07:35:59 +0200 Subject: [PATCH] src/backup/crypt_setup.rs: add comment for possible improvements --- src/backup/crypt_setup.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backup/crypt_setup.rs b/src/backup/crypt_setup.rs index 0b59e77a..d0e348dd 100644 --- a/src/backup/crypt_setup.rs +++ b/src/backup/crypt_setup.rs @@ -82,6 +82,7 @@ impl CryptConfig { /// chunk digest values do not clash with values computed for /// other sectret keys. pub fn compute_digest(&self, data: &[u8]) -> [u8; 32] { + // FIXME: use HMAC-SHA256 instead?? let mut hasher = openssl::sha::Sha256::new(); hasher.update(&self.id_key); hasher.update(data);