From 945f3a935d85d55c23d5cfe4b98b064532dc6bcd Mon Sep 17 00:00:00 2001 From: Tim Segers Date: Thu, 30 Oct 2025 23:29:08 +0100 Subject: Replace libhydrogen by tweetnacl and tweetpwhash --- src/encpipe_p.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/encpipe_p.h') 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 #include -#include +#include #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; -- cgit v1.2.3-70-g09d2