diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-05-18 23:47:37 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-05-18 23:47:37 +0100 |
commit | 6f80cd3299aac6b1df9aeb5822080ad6574b3f6e (patch) | |
tree | 65403ac52c147a0b9d3150cd94387a5075ca429a /src/libcryptobox | |
parent | c70116611f001ff7990431e2abdc078bec4e4f4b (diff) | |
download | rspamd-6f80cd3299aac6b1df9aeb5822080ad6574b3f6e.tar.gz rspamd-6f80cd3299aac6b1df9aeb5822080ad6574b3f6e.zip |
[Fix] Relax alignment requirements
Issue: #2222
Diffstat (limited to 'src/libcryptobox')
-rw-r--r-- | src/libcryptobox/cryptobox.h | 4 |
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; |