summaryrefslogtreecommitdiffstats
path: root/src/protocols
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-03-10 18:04:14 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-03-10 18:04:14 +0100
commit45da9c9f296215a4d9ff77db0e6d48bda105ddee (patch)
treecdf816d309a228d7f3f47370b9f6776b514816d1 /src/protocols
parent519972c9c18a103a7689844150c75e939c642115 (diff)
downloadfastd-45da9c9f296215a4d9ff77db0e6d48bda105ddee.tar
fastd-45da9c9f296215a4d9ff77db0e6d48bda105ddee.zip
Remove aligned data_t type again
Diffstat (limited to 'src/protocols')
-rw-r--r--src/protocols/ec25519_fhmqvc/handshake.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/ec25519_fhmqvc/handshake.c b/src/protocols/ec25519_fhmqvc/handshake.c
index af899d7..3c9c25c 100644
--- a/src/protocols/ec25519_fhmqvc/handshake.c
+++ b/src/protocols/ec25519_fhmqvc/handshake.c
@@ -54,7 +54,7 @@ static void derive_key(fastd_sha256_t *out, size_t blocks, const uint32_t *salt,
const aligned_int256_t *A, const aligned_int256_t *B, const aligned_int256_t *X, const aligned_int256_t *Y,
const aligned_int256_t *sigma) {
size_t methodlen = strlen(method_name);
- data_t info[4*PUBLICKEYBYTES + methodlen];
+ uint8_t info[4*PUBLICKEYBYTES + methodlen] __attribute__((aligned(8)));
memcpy(info, A, PUBLICKEYBYTES);
memcpy(info+PUBLICKEYBYTES, B, PUBLICKEYBYTES);
@@ -317,7 +317,7 @@ static void finish_handshake(fastd_context_t *ctx, fastd_socket_t *sock, const f
bool valid;
if (!compat) {
- data_t mac[HASHBYTES];
+ uint8_t mac[HASHBYTES] __attribute__((aligned(8)));
memcpy(mac, handshake->records[RECORD_TLV_MAC].data, HASHBYTES);
memset(handshake->records[RECORD_TLV_MAC].data, 0, HASHBYTES);