Skip to content
Snippets Groups Projects
Commit 495ef46e authored by dgoulet's avatar dgoulet
Browse files

Rever chunk size to 500k


Signed-off-by: default avatarDavid Goulet <dgoulet@ev0ke.net>
parent 329318b3
Branches
No related tags found
No related merge requests found
...@@ -25,7 +25,8 @@ ...@@ -25,7 +25,8 @@
#include <sodium.h> #include <sodium.h>
#define MAGIC_SIZE (sizeof(scrambler_header)) #define MAGIC_SIZE (sizeof(scrambler_header))
#define CHUNK_SIZE 8192 //#define CHUNK_SIZE 8192
#define CHUNK_SIZE 500000
#define ENCRYPTED_CHUNK_SIZE (crypto_box_SEALBYTES + CHUNK_SIZE) #define ENCRYPTED_CHUNK_SIZE (crypto_box_SEALBYTES + CHUNK_SIZE)
#define MAXIMAL_PASSWORD_LENGTH 256 #define MAXIMAL_PASSWORD_LENGTH 256
#define MAX_ISTREAM_BUFFER_SIZE (ENCRYPTED_CHUNK_SIZE * 2) #define MAX_ISTREAM_BUFFER_SIZE (ENCRYPTED_CHUNK_SIZE * 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment