aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-15 10:25:13 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-15 10:25:13 +0000
commit576837a761dbb2fa0728b91706c347a645398102 (patch)
treef516eb0f18d67ea16902ba0c2a65c19aaf61f420 /src
parent7b6ff345af8128520e47ea91b9fb75277e625801 (diff)
downloadrspamd-576837a761dbb2fa0728b91706c347a645398102.tar.gz
rspamd-576837a761dbb2fa0728b91706c347a645398102.zip
Unbreak 32bit declarations.
Issue: #222
Diffstat (limited to 'src')
-rw-r--r--src/libcryptobox/poly1305/ref-32.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcryptobox/poly1305/ref-32.c b/src/libcryptobox/poly1305/ref-32.c
index ea9633f62..9f0ea998b 100644
--- a/src/libcryptobox/poly1305/ref-32.c
+++ b/src/libcryptobox/poly1305/ref-32.c
@@ -37,12 +37,12 @@ U32TO8(unsigned char *p, uint32_t v) {
p[3] = (unsigned char)((v >> 24) & 0xff);
}
-static size_t
+size_t
poly1305_block_size_ref(void) {
return POLY1305_BLOCK_SIZE;
}
-static void
+void
poly1305_init_ext_ref(void *state, const poly1305_key *key, size_t bytes_hint) {
poly1305_state_ref_t *st = (poly1305_state_ref_t *)state;
@@ -72,7 +72,7 @@ poly1305_init_ext_ref(void *state, const poly1305_key *key, size_t bytes_hint) {
st->final = 0;
}
-static void
+void
poly1305_blocks_ref(void *state, const unsigned char *in, size_t inlen) {
poly1305_state_ref_t *st = (poly1305_state_ref_t *)state;
const uint32_t hibit = (st->final) ? 0 : (1 << 24); /* 1 << 128 */
@@ -134,7 +134,7 @@ poly1305_blocks_ref(void *state, const unsigned char *in, size_t inlen) {
st->h[4] = h4;
}
-static void
+void
poly1305_finish_ext_ref(void *state, const unsigned char *in, size_t remaining, unsigned char mac[16]) {
poly1305_state_ref_t *st = (poly1305_state_ref_t *)state;
uint32_t h0,h1,h2,h3,h4,c;
@@ -222,7 +222,7 @@ poly1305_finish_ext_ref(void *state, const unsigned char *in, size_t remaining,
st->pad[3] = 0;
}
-static void
+void
poly1305_auth_ref(unsigned char mac[16], const unsigned char *in, size_t inlen, const poly1305_key *key) {
poly1305_state_ref_t st;
size_t blocks;