1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

Poly1305 message authenticator

This commit is contained in:
Rhys Weatherley
2015-03-31 09:25:49 +10:00
parent e452efcf47
commit a3d7f61b96
6 changed files with 575 additions and 0 deletions

View File

@@ -30,6 +30,16 @@
#define CRYPTO_LITTLE_ENDIAN 1
#define htole16(x) (x)
#define le16toh(x) (x)
#define htobe16(x) \
(__extension__ ({ \
uint16_t _temp = (x); \
((_temp >> 8) & 0x00FF) | \
((_temp << 8) & 0xFF00); \
}))
#define be16toh(x) (htobe16((x)))
#define htole32(x) (x)
#define le32toh(x) (x)
#define htobe32(x) \