aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-25 23:15:16 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-25 23:15:16 +0000
commit6ca35268fea102054277895f45425bc8a64992b8 (patch)
treef3332224e21f7c039053ac7ad96a391672779f99 /src/libcryptobox
parent13d1587064ee25b8dab3e5d37db383a1d48bcc8d (diff)
downloadrspamd-6ca35268fea102054277895f45425bc8a64992b8.tar.gz
rspamd-6ca35268fea102054277895f45425bc8a64992b8.zip
Start migrating to the new hash API.
Diffstat (limited to 'src/libcryptobox')
-rw-r--r--src/libcryptobox/cryptobox.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcryptobox/cryptobox.h b/src/libcryptobox/cryptobox.h
index fc7ddd8b3..7d18e2c32 100644
--- a/src/libcryptobox/cryptobox.h
+++ b/src/libcryptobox/cryptobox.h
@@ -208,6 +208,9 @@ guint rspamd_cryptobox_nm_bytes (void);
guint rspamd_cryptobox_mac_bytes (void);
/* Hash IUF interface */
+typedef struct RSPAMD_ALIGNED(32) rspamd_cryptobox_hash_state_s {
+ unsigned char opaque[256];
+} rspamd_cryptobox_hash_state_t;
/**
* Init cryptobox hash state using key if needed, `st` must point to the buffer