aboutsummaryrefslogtreecommitdiffstats
path: root/src/encpipe_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/encpipe_p.h')
-rw-r--r--src/encpipe_p.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/encpipe_p.h b/src/encpipe_p.h
index 98afe94..06fc523 100644
--- a/src/encpipe_p.h
+++ b/src/encpipe_p.h
@@ -16,7 +16,7 @@
#include <string.h>
#include <unistd.h>
-#include <hydrogen.h>
+#include <tweetnacl.h>
#include "common.h"
#include "safe_rw.h"
@@ -24,15 +24,12 @@
#define MIN_BUFFER_SIZE 512
#define MAX_BUFFER_SIZE 0x7fffffff
#define DEFAULT_BUFFER_SIZE (1 * 1024 * 1024)
-#define HYDRO_CONTEXT "EncPipe"
#define PWHASH_OPSLIMIT 1000000
-#define PWHASH_MEMLIMIT 0
-#define PWHASH_THREADS 1
typedef struct Context_ {
char * in;
char * out;
- unsigned char key[hydro_secretbox_KEYBYTES];
+ unsigned char key[crypto_secretbox_KEYBYTES];
unsigned char *buf;
size_t sizeof_buf;
int fd_in;