Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
trees
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Liberate
trees
Commits
495ef46e
Commit
495ef46e
authored
8 years ago
by
dgoulet
Browse files
Options
Downloads
Patches
Plain Diff
Rever chunk size to 500k
Signed-off-by:
David Goulet
<
dgoulet@ev0ke.net
>
parent
329318b3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/scrambler-common.h
+2
-1
2 additions, 1 deletion
src/scrambler-common.h
with
2 additions
and
1 deletion
src/scrambler-common.h
+
2
−
1
View file @
495ef46e
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment