upstream: https://github.com/mirage/mirage-crypto
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

poly1305: qualify with static keyword to avoid symbol clashes with openssl (fixes #77)

+5 -5
+2 -2
src/native/poly1305-donna-32.h
··· 43 43 p[3] = (v >> 24) & 0xff; 44 44 } 45 45 46 - void 46 + static void 47 47 poly1305_init(poly1305_context *ctx, const unsigned char key[32]) { 48 48 poly1305_state_internal_t *st = (poly1305_state_internal_t *)ctx; 49 49 ··· 132 132 st->h[4] = h4; 133 133 } 134 134 135 - POLY1305_NOINLINE void 135 + POLY1305_NOINLINE static void 136 136 poly1305_finish(poly1305_context *ctx, unsigned char mac[16]) { 137 137 poly1305_state_internal_t *st = (poly1305_state_internal_t *)ctx; 138 138 unsigned long h0,h1,h2,h3,h4,c;
+2 -2
src/native/poly1305-donna-64.h
··· 52 52 p[7] = (v >> 56) & 0xff; 53 53 } 54 54 55 - void 55 + static void 56 56 poly1305_init(poly1305_context *ctx, const unsigned char key[32]) { 57 57 poly1305_state_internal_t *st = (poly1305_state_internal_t *)ctx; 58 58 unsigned long long t0,t1; ··· 131 131 } 132 132 133 133 134 - POLY1305_NOINLINE void 134 + POLY1305_NOINLINE static void 135 135 poly1305_finish(poly1305_context *ctx, unsigned char mac[16]) { 136 136 poly1305_state_internal_t *st = (poly1305_state_internal_t *)ctx; 137 137 unsigned long long h0,h1,h2,c;
+1 -1
src/native/poly1305-donna.c
··· 13 13 #include "poly1305-donna-32.h" 14 14 #endif 15 15 16 - void 16 + static void 17 17 poly1305_update(poly1305_context *ctx, const unsigned char *m, size_t bytes) { 18 18 poly1305_state_internal_t *st = (poly1305_state_internal_t *)ctx; 19 19 size_t i;