From 006ac63208cdba554688083ecd1a5fc4031ba987 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 16 Oct 2015 12:50:56 +0100 Subject: Slightly optimize alignment --- src/libutil/keypair_private.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/libutil/keypair_private.h b/src/libutil/keypair_private.h index ac70f25e6..757dabb6b 100644 --- a/src/libutil/keypair_private.h +++ b/src/libutil/keypair_private.h @@ -30,11 +30,11 @@ #include "blake2.h" #include "cryptobox.h" -struct rspamd_http_keypair { +struct RSPAMD_ALIGNED(32) rspamd_http_keypair { guchar pk[rspamd_cryptobox_PKBYTES]; - guchar sk[rspamd_cryptobox_SKBYTES]; + guchar RSPAMD_ALIGNED(32) sk[rspamd_cryptobox_SKBYTES]; guchar id[BLAKE2B_OUTBYTES]; - guchar nm[rspamd_cryptobox_NMBYTES]; + guchar RSPAMD_ALIGNED(32) nm[rspamd_cryptobox_NMBYTES]; gboolean has_nm; ref_entry_t ref; }; -- cgit v1.2.3