From 088a15bf1d41164dc90794764422c96c6b0d9578 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 7 Feb 2015 16:08:12 +0000 Subject: Use libcryptobox in http. --- src/libutil/keypair_private.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/libutil/keypair_private.h') 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; }; -- cgit v1.2.3