summaryrefslogtreecommitdiff
path: root/poly1305.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-01-16 16:18:25 +0100
committerNiels Möller <nisse@lysator.liu.se>2014-01-16 16:18:25 +0100
commit5a66bb56433be58f1b1b6a044e49c692327df455 (patch)
treec5c9276d550cc768d339f657119d2205d136124f /poly1305.h
parent2667d597ab530f3a6b50bb1d7690839fd2fd0d32 (diff)
downloadnettle-5a66bb56433be58f1b1b6a044e49c692327df455.tar.gz
Make poly1305 code use struct aes128_ctx.
Diffstat (limited to 'poly1305.h')
-rw-r--r--poly1305.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/poly1305.h b/poly1305.h
index 13b2d6c8..7afa387e 100644
--- a/poly1305.h
+++ b/poly1305.h
@@ -1,4 +1,4 @@
-/* poly1305-aes.h
+/* poly1305.h
*
* Poly1305 message authentication code.
*/
@@ -77,7 +77,7 @@ void poly1305_digest (struct poly1305_ctx *ctx,
#define POLY1305_SET_KEY(ctx, set_key, key) \
do { \
poly1305_set_key(&(ctx)->pctx, (key+16)); \
- (set_key)(&(ctx)->cipher, 16, (key)); \
+ (set_key)(&(ctx)->cipher, (key)); \
(ctx)->pctx.index = 0; \
} while (0)