From 822c9e935a25a7590cd99b4c5407bb6596be41b7 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 4 Dec 2013 18:22:33 +0100 Subject: Change xor and xor_a back to work on pointers For some reason, this makes GCC generate much better code on MIPS with -Os --- src/methods/composed_gmac/composed_gmac.c | 2 +- src/methods/generic_gcm/generic_gcm.c | 2 +- src/methods/generic_gmac/generic_gmac.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/methods') diff --git a/src/methods/composed_gmac/composed_gmac.c b/src/methods/composed_gmac/composed_gmac.c index 25805fa..b3b22d6 100644 --- a/src/methods/composed_gmac/composed_gmac.c +++ b/src/methods/composed_gmac/composed_gmac.c @@ -215,7 +215,7 @@ static bool method_encrypt(fastd_context_t *ctx, fastd_peer_t *peer UNUSED, fast return false; } - xor_a(&outblocks[0], tag); + xor_a(&outblocks[0], &tag); fastd_buffer_free(in); diff --git a/src/methods/generic_gcm/generic_gcm.c b/src/methods/generic_gcm/generic_gcm.c index 345bb61..f1aebd5 100644 --- a/src/methods/generic_gcm/generic_gcm.c +++ b/src/methods/generic_gcm/generic_gcm.c @@ -182,7 +182,7 @@ static bool method_encrypt(fastd_context_t *ctx, fastd_peer_t *peer UNUSED, fast return false; } - xor_a(&outblocks[0], tag); + xor_a(&outblocks[0], &tag); fastd_buffer_free(in); diff --git a/src/methods/generic_gmac/generic_gmac.c b/src/methods/generic_gmac/generic_gmac.c index 825bf48..f1d98ca 100644 --- a/src/methods/generic_gmac/generic_gmac.c +++ b/src/methods/generic_gmac/generic_gmac.c @@ -172,7 +172,7 @@ static bool method_encrypt(fastd_context_t *ctx, fastd_peer_t *peer UNUSED, fast return false; } - xor_a(&outblocks[0], tag); + xor_a(&outblocks[0], &tag); fastd_buffer_free(in); -- cgit v1.2.3