summaryrefslogtreecommitdiff
path: root/chacha-poly1305.c
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2020-04-14 13:53:10 +0300
committerNiels Möller <nisse@lysator.liu.se>2020-04-15 19:50:43 +0200
commitc840b91d3e5055e2c72f8361a6b6995ae04e7b3c (patch)
tree9d1063fbd013d19e739faed450b924d56b09095d /chacha-poly1305.c
parent07da509867bc46846de6c9ee98bcacc6578c9994 (diff)
downloadnettle-c840b91d3e5055e2c72f8361a6b6995ae04e7b3c.tar.gz
poly1305: make internal symbols internal
Make low-level poly1305 functions that were marked as "internal" in public header file really internal. Change their prefix from nettle to _nettle. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Diffstat (limited to 'chacha-poly1305.c')
-rw-r--r--chacha-poly1305.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/chacha-poly1305.c b/chacha-poly1305.c
index a15fef0c..47ca86bb 100644
--- a/chacha-poly1305.c
+++ b/chacha-poly1305.c
@@ -54,6 +54,7 @@
#include "chacha-internal.h"
#include "chacha-poly1305.h"
+#include "poly1305-internal.h"
#include "macros.h"
@@ -80,7 +81,7 @@ chacha_poly1305_set_nonce (struct chacha_poly1305_ctx *ctx,
chacha_set_nonce96 (&ctx->chacha, nonce);
/* Generate authentication key */
_chacha_core (u.x, ctx->chacha.state, CHACHA_ROUNDS);
- poly1305_set_key (&ctx->poly1305, u.subkey);
+ _poly1305_set_key (&ctx->poly1305, u.subkey);
/* For final poly1305 processing */
memcpy (ctx->s.b, u.subkey + 16, 16);
/* Increment block count */
@@ -162,6 +163,6 @@ chacha_poly1305_digest (struct chacha_poly1305_ctx *ctx,
_poly1305_block (&ctx->poly1305, buf, 1);
- poly1305_digest (&ctx->poly1305, &ctx->s);
+ _poly1305_digest (&ctx->poly1305, &ctx->s);
memcpy (digest, &ctx->s.b, length);
}