diff options
author | Daiki Ueno <dueno@redhat.com> | 2022-08-16 16:37:51 +0900 |
---|---|---|
committer | Daiki Ueno <dueno@redhat.com> | 2022-09-27 06:46:41 +0900 |
commit | f5b64ecc8decb86f2716b050a69828e8b9c71180 (patch) | |
tree | 7088b646b95fea94cc4e29707bb6004ab3f93090 /bswap-internal.h | |
parent | ff660604eb66c5ff2b2bb508ba7f41b9c13c8087 (diff) | |
download | nettle-f5b64ecc8decb86f2716b050a69828e8b9c71180.tar.gz |
Implement AES-GCM-SIV
This implements AES-GCM-SIV, described in RFC8452, on top of the
existing AES-GCM primitives. In particular, its hash algorithm
POLYVAL is implemented using the GHASH with additional byte order
conversion according to RFC8452 Appendix A.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Diffstat (limited to 'bswap-internal.h')
-rw-r--r-- | bswap-internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bswap-internal.h b/bswap-internal.h index f9606f1d..b9923f99 100644 --- a/bswap-internal.h +++ b/bswap-internal.h @@ -68,4 +68,10 @@ nettle_bswap32 (uint32_t x) #define bswap64_if_le nettle_bswap64 #endif +#if WORDS_BIGENDIAN +#define bswap64_if_be nettle_bswap64 +#else +#define bswap64_if_be(x) (x) +#endif + #endif /* NETTLE_BSWAP_INTERNAL_H_INCLUDED */ |