aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/keypair_private.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-07 16:08:12 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-07 16:08:12 +0000
commit088a15bf1d41164dc90794764422c96c6b0d9578 (patch)
tree0417ae54a52457da25004528554f446582f16f2f /src/libutil/keypair_private.h
parentca93090f76b1c4b5536489d6c42fc983802b4c49 (diff)
downloadrspamd-088a15bf1d41164dc90794764422c96c6b0d9578.tar.gz
rspamd-088a15bf1d41164dc90794764422c96c6b0d9578.zip
Use libcryptobox in http.
Diffstat (limited to 'src/libutil/keypair_private.h')
-rw-r--r--src/libutil/keypair_private.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libutil/keypair_private.h b/src/libutil/keypair_private.h
index 287a302b3..84e936072 100644
--- a/src/libutil/keypair_private.h
+++ b/src/libutil/keypair_private.h
@@ -29,12 +29,13 @@
#include "tweetnacl.h"
#include "ref.h"
#include "blake2.h"
+#include "cryptobox.h"
struct rspamd_http_keypair {
- guchar pk[crypto_box_PUBLICKEYBYTES];
- guchar sk[crypto_box_SECRETKEYBYTES];
+ guchar pk[rspamd_cryptobox_PKBYTES];
+ guchar sk[rspamd_cryptobox_SKBYTES];
guchar id[BLAKE2B_OUTBYTES];
- guchar nm[crypto_box_BEFORENMBYTES];
+ guchar nm[rspamd_cryptobox_NMBYTES];
ref_entry_t ref;
};