From ae7a2efeea1aadfaf3a098e0449997f5b5840b44 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sat, 23 Dec 2017 23:53:23 +0300 Subject: [PATCH] One block is preallocated also for stdin reading --- README | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README b/README index a307e8d..802056a 100644 --- 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. -- 2.44.0