diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-04-14 13:53:10 +0300 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2020-04-15 19:50:43 +0200 |
commit | c840b91d3e5055e2c72f8361a6b6995ae04e7b3c (patch) | |
tree | 9d1063fbd013d19e739faed450b924d56b09095d /chacha-poly1305.c | |
parent | 07da509867bc46846de6c9ee98bcacc6578c9994 (diff) | |
download | nettle-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.c | 5 |
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); } |