From ea46a2f8c7732b13be1e4cee7618c7293706aa55 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 6 Feb 2015 15:04:41 +0000 Subject: Add platform detector based on cpuid. --- src/libcryptobox/cryptobox.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/libcryptobox/cryptobox.h') diff --git a/src/libcryptobox/cryptobox.h b/src/libcryptobox/cryptobox.h index 60b5d2252..565371b70 100644 --- a/src/libcryptobox/cryptobox.h +++ b/src/libcryptobox/cryptobox.h @@ -36,11 +36,6 @@ typedef guchar rspamd_sk_t[rspamd_cryptobox_SKBYTES]; typedef guchar rspamd_sig_t[rspamd_cryptobox_MACBYTES]; typedef guchar rspamd_nm_t[rspamd_cryptobox_NMBYTES]; -struct rspamd_encrypt_segment { - guchar *buf; - gsize len; -}; - /** * Init cryptobox library */ @@ -85,7 +80,7 @@ gboolean rspamd_cryptobox_decrypt_inplace (guchar *data, gsize len, * @param sk local secret key * @param sig output signature */ -void rspamd_cryptobox_encrypt_nm_inplace (struct rspamd_encrypt_segment *segments, +void rspamd_cryptobox_encrypt_nm_inplace (guchar *data, gsize len, gsize cnt, const rspamd_nm_t nm, rspamd_sig_t sig); -- cgit v1.2.3