summaryrefslogtreecommitdiff
path: root/chacha-poly1305.c
diff options
context:
space:
mode:
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);
}