diff options
Diffstat (limited to 'src/libcryptobox/poly1305/ref-32.c')
-rw-r--r-- | src/libcryptobox/poly1305/ref-32.c | 10 |
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; |