]> Cypherpunks.ru repositories - gohpenc.git/commitdiff
One block is preallocated also for stdin reading
authorSergey Matveev <stargrave@stargrave.org>
Sat, 23 Dec 2017 20:53:23 +0000 (23:53 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 23 Dec 2017 20:53:23 +0000 (23:53 +0300)
README

diff --git a/README b/README
index a307e8d7fea5aceb2c180379d8338851c12a5a8f..802056ab261b239612e146fbc06157c6dc9209d8 100644 (file)
--- a/README
+++ b/README
@@ -45,9 +45,10 @@ How encryption/authentication is performed:
 | SALT | LEN | CIPHERTEXT | AUTH TAG | LEN | CIPHERTEXT | AUTH TAG | ...
 +------+-----+------------+----------+-----+------------+----------+----
 
-gohpenc preallocates memory for one block for each thread. If you want
-to process data with 1 MiB blocks in 4 threads, then you have to have at
-least 4 MiBs of free memory. Moreover you have at least 1 MiB of free
-memory on the decrypting side.
+gohpenc preallocates memory for one block for each thread and one block
+for buffered reading from stdin. If you want to process data with 1 MiB
+blocks in 4 threads, then you have to have at least 5 MiBs of free
+memory. Moreover you have at least 1 MiB of free memory on the
+decrypting side.
 
 gohpenc is free software: see the file COPYING for copying conditions.