diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-29 09:53:19 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-29 09:53:19 +0000 |
commit | e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98 (patch) | |
tree | 0165cadf4043550470ee526d812df1517afbcd7a /src/libcryptobox/cryptobox.h | |
parent | 6a4752670d5cdd251ae68539ffcf1a99c67aabad (diff) | |
download | rspamd-e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98.tar.gz rspamd-e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98.zip |
Output configuration of libcryptobox
Diffstat (limited to 'src/libcryptobox/cryptobox.h')
-rw-r--r-- | src/libcryptobox/cryptobox.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libcryptobox/cryptobox.h b/src/libcryptobox/cryptobox.h index 7977bd0e6..5dd3b9d60 100644 --- a/src/libcryptobox/cryptobox.h +++ b/src/libcryptobox/cryptobox.h @@ -47,10 +47,19 @@ typedef guchar rspamd_nm_t[rspamd_cryptobox_MAX_NMBYTES]; typedef guchar rspamd_nonce_t[rspamd_cryptobox_MAX_NONCEBYTES]; typedef guchar rspamd_sipkey_t[rspamd_cryptobox_SIPKEYBYTES]; +struct rspamd_cryptobox_library_ctx { + gchar *cpu_extensions; + const gchar *curve25519_impl; + const gchar *chacha20_impl; + const gchar *poly1305_impl; + const gchar *siphash_impl; + const gchar *blake2_impl; +}; + /** * Init cryptobox library */ -void rspamd_cryptobox_init (void); +struct rspamd_cryptobox_library_ctx* rspamd_cryptobox_init (void); /** * Generate new keypair |