summaryrefslogtreecommitdiff
path: root/poly1305.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-01-20 21:49:47 +0100
committerNiels Möller <nisse@lysator.liu.se>2014-01-20 21:49:47 +0100
commitdca9abf1c41fb1c0b51c75ca8decac4b27c26671 (patch)
tree8d83cb1447310bdbc82891432439478b75c784ed /poly1305.h
parentefdf4f4b86dc166ecd4fd0d2847eaf10202cee53 (diff)
downloadnettle-dca9abf1c41fb1c0b51c75ca8decac4b27c26671.tar.gz
poly1305_digest: Use union nettle_block16.
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 8ba4c7cb..be0ef6e2 100644
--- a/poly1305.h
+++ b/poly1305.h
@@ -71,9 +71,9 @@ struct poly1305_ctx {
/* Low-level internal interface. */
void poly1305_set_key(struct poly1305_ctx *ctx, const uint8_t key[POLY1305_KEY_SIZE]);
/* Extracts digest, and adds it to s, the encrypted nonce. */
-void poly1305_digest (struct poly1305_ctx *ctx, uint8_t *s);
+void poly1305_digest (struct poly1305_ctx *ctx, union nettle_block16 *s);
/* Internal function. Process one block. */
-void _poly1305_block (struct poly1305_ctx *ctx, const uint8_t m[POLY1305_BLOCK_SIZE],
+void _poly1305_block (struct poly1305_ctx *ctx, const uint8_t *m,
unsigned high);
/* poly1305-aes */