diff options
| author | 2025-10-30 23:29:08 +0100 | |
|---|---|---|
| committer | 2025-11-01 10:24:48 +0100 | |
| commit | 945f3a935d85d55c23d5cfe4b98b064532dc6bcd (patch) | |
| tree | b08f0656671c23b191ff3d5be3a309fd9d62d8b5 /src/encpipe_p.h | |
| parent | c52ae66fa564fef0e55b5b80f0fd65679daf5abc (diff) | |
| download | tweetpipe-945f3a935d85d55c23d5cfe4b98b064532dc6bcd.tar.gz | |
Replace libhydrogen by tweetnacl and tweetpwhash
Diffstat (limited to 'src/encpipe_p.h')
| -rw-r--r-- | src/encpipe_p.h | 7 |
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; |