summaryrefslogtreecommitdiffstats
path: root/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-11-28 22:36:41 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-11-28 22:36:41 +0100
commit337d9e4787a20e8277c7ce638786cdaa2ec3f8ca (patch)
tree4f013b2e1897bc03a4f03035ade046d8d5b77154 /src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h
parent54c3e6adf04b0a5ef4d13c2306ce5a380fc75205 (diff)
downloadfastd-337d9e4787a20e8277c7ce638786cdaa2ec3f8ca.tar
fastd-337d9e4787a20e8277c7ce638786cdaa2ec3f8ca.zip
ghash-pclmulqdq: rework implementation to allow both GCC and Clang to generate fast code
Diffstat (limited to 'src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h')
-rw-r--r--src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h b/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h
index f2bc916..c2645f8 100644
--- a/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h
+++ b/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h
@@ -27,17 +27,8 @@
#include "../../../../crypto.h"
-typedef union _v2di {
- uint64_t v __attribute__((vector_size(16)));
- char v16 __attribute__((vector_size(16)));
- long long int vll __attribute__((vector_size(16)));
- uint64_t e[2];
- fastd_block128_t block;
-} v2di;
-
-
struct fastd_mac_state {
- v2di H;
+ fastd_block128_t H;
};