--- /dev/null
+#if defined(_MSC_VER)
+ #include <intrin.h>
+
+ typedef struct uint128_t {
+ unsigned long long lo;
+ unsigned long long hi;
+ } uint128_t;
+
+ #define POLY1305_NOINLINE __declspec(noinline)
+#elif defined(__GNUC__)
+ #pragma GCC system_header
+ #if defined(__SIZEOF_INT128__)
+ typedef unsigned __int128 uint128_t;
+ #else
+ typedef unsigned uint128_t __attribute__((mode(TI)));
+ #endif
+
+ #define POLY1305_NOINLINE __attribute__((noinline))
+#endif
#include "config.h"
#include "poly1305.h"
+#include "poly1305_internal.h"
enum {
POLY1305_BLOCK_SIZE = 16
};
-#if defined(_MSC_VER)
- #include <intrin.h>
-
- typedef struct uint128_t {
- unsigned long long lo;
- unsigned long long hi;
- } uint128_t;
-
- #define POLY1305_NOINLINE __declspec(noinline)
-#elif defined(__GNUC__)
- #pragma GCC system_header
- #if defined(__SIZEOF_INT128__)
- typedef unsigned __int128 uint128_t;
- #else
- typedef unsigned uint128_t __attribute__((mode(TI)));
- #endif
-
- #define POLY1305_NOINLINE __attribute__((noinline))
-#endif
-
typedef struct poly1305_state_ref_t {
uint64_t r[3];
uint64_t h[3];