aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-18 23:47:37 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-18 23:47:37 +0100
commit6f80cd3299aac6b1df9aeb5822080ad6574b3f6e (patch)
tree65403ac52c147a0b9d3150cd94387a5075ca429a /src/libcryptobox
parentc70116611f001ff7990431e2abdc078bec4e4f4b (diff)
downloadrspamd-6f80cd3299aac6b1df9aeb5822080ad6574b3f6e.tar.gz
rspamd-6f80cd3299aac6b1df9aeb5822080ad6574b3f6e.zip
[Fix] Relax alignment requirements
Issue: #2222
Diffstat (limited to 'src/libcryptobox')
-rw-r--r--src/libcryptobox/cryptobox.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcryptobox/cryptobox.h b/src/libcryptobox/cryptobox.h
index 9fc5c7fe9..1045547a2 100644
--- a/src/libcryptobox/cryptobox.h
+++ b/src/libcryptobox/cryptobox.h
@@ -312,7 +312,7 @@ guint rspamd_cryptobox_mac_bytes (enum rspamd_cryptobox_mode mode);
guint rspamd_cryptobox_signature_bytes (enum rspamd_cryptobox_mode mode);
/* Hash IUF interface */
-typedef struct RSPAMD_ALIGNED(32) rspamd_cryptobox_hash_state_s {
+typedef struct RSPAMD_ALIGNED(16) rspamd_cryptobox_hash_state_s {
unsigned char opaque[256];
} rspamd_cryptobox_hash_state_t;
@@ -343,7 +343,7 @@ void rspamd_cryptobox_hash (guchar *out,
gsize keylen);
/* Non crypto hash IUF interface */
-typedef struct RSPAMD_ALIGNED(32) rspamd_cryptobox_fast_hash_state_s {
+typedef struct RSPAMD_ALIGNED(16) rspamd_cryptobox_fast_hash_state_s {
unsigned char opaque[64 + sizeof (size_t) + sizeof (uint64_t)];
} rspamd_cryptobox_fast_hash_state_t;