From 2ed309a03f55244b2ab19efbdbe904bd2fd0862d Mon Sep 17 00:00:00 2001 From: Roman <22231294+Lutymane@users.noreply.github.com> Date: Fri, 30 Jun 2023 12:43:17 +0400 Subject: [PATCH] fix(readme): typo --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 54e0585..77c1edd 100644 --- a/readme.md +++ b/readme.md @@ -25,7 +25,7 @@ Because it can't be parallelized, so to gain access to the full data, you have t Because decryption routine is essentially doing multiple rounds of cipher encryption of IV and any changes in cipher text won't propagate to the following blocks, which opens theoretical possibilities for data tampering to compromise sensitive data. While in PCBC every bit changes everything that follows. #### Integrity check -I used SHA3-512 (to fit the 256 bit crypto strength) for integrity check. The hash of the unencrypted `.tar.br` is encrypted along with the archive's content in place of prefix: `encrypt(digest || archive)`. This scheme prevents any possible brute-force attempts to uncover the key based on guessing plaintext from first blocks. 512 bits of the digest occupy 4 full blocks, adding SHA3 random output, it's impossible to make anything out of it, comparing to concatenating unecrypted hash to the encrypted archive: `digest || encrypt(archive)`, like I did initially. +I used SHA3-512 (to fit the 256 bit crypto strength) for integrity check. The hash of the unencrypted `.tar.br` is encrypted along with the archive's content in place of prefix: `encrypt(digest || archive)`. This scheme prevents any possible brute-force attempts to uncover the key based on guessing plaintext from first blocks. 512 bits of the digest occupy 4 full blocks, adding SHA3 random output, it's impossible to make anything out of it, comparing to concatenating unencrypted hash to the encrypted archive: `digest || encrypt(archive)`, like I did initially. #### Files zeroing Temporary files with sensitive data are being overwritten with zeroes, to prevent possible physical analysis of the drives.