summaryrefslogtreecommitdiff
path: root/node/Poly1305.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-06-26 17:15:20 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-06-26 17:15:20 -0700
commitc3cbc927574aff7287f26e4d5446d0185c6b06dd (patch)
tree2448500b8edb5cfc245f1a0826c6c505d7559e63 /node/Poly1305.cpp
parent45a1e048bbab5f2759b32fddd983d490e4f7f0ef (diff)
downloadinfinitytier-c3cbc927574aff7287f26e4d5446d0185c6b06dd.tar.gz
infinitytier-c3cbc927574aff7287f26e4d5446d0185c6b06dd.zip
Some crypto comment fixes.
Diffstat (limited to 'node/Poly1305.cpp')
-rw-r--r--node/Poly1305.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/node/Poly1305.cpp b/node/Poly1305.cpp
index e9ac8ce7..230b2eff 100644
--- a/node/Poly1305.cpp
+++ b/node/Poly1305.cpp
@@ -16,7 +16,7 @@ namespace ZeroTier {
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
-static void add(unsigned int h[17],const unsigned int c[17])
+static inline void add(unsigned int h[17],const unsigned int c[17])
{
unsigned int j;
unsigned int u;
@@ -24,7 +24,7 @@ static void add(unsigned int h[17],const unsigned int c[17])
for (j = 0;j < 17;++j) { u += h[j] + c[j]; h[j] = u & 255; u >>= 8; }
}
-static void squeeze(unsigned int h[17])
+static inline void squeeze(unsigned int h[17])
{
unsigned int j;
unsigned int u;
@@ -40,7 +40,7 @@ static const unsigned int minusp[17] = {
5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 252
} ;
-static void freeze(unsigned int h[17])
+static inline void freeze(unsigned int h[17])
{
unsigned int horig[17];
unsigned int j;
@@ -51,7 +51,7 @@ static void freeze(unsigned int h[17])
for (j = 0;j < 17;++j) h[j] ^= negative & (horig[j] ^ h[j]);
}
-static void mulmod(unsigned int h[17],const unsigned int r[17])
+static inline void mulmod(unsigned int h[17],const unsigned int r[17])
{
unsigned int hr[17];
unsigned int i;