diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-07 16:08:12 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-07 16:08:12 +0000 |
commit | 088a15bf1d41164dc90794764422c96c6b0d9578 (patch) | |
tree | 0417ae54a52457da25004528554f446582f16f2f /src/libutil/keypair_private.h | |
parent | ca93090f76b1c4b5536489d6c42fc983802b4c49 (diff) | |
download | rspamd-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.h | 7 |
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; }; |