summaryrefslogtreecommitdiff
path: root/poly1305-update.c
diff options
context:
space:
mode:
Diffstat (limited to 'poly1305-update.c')
-rw-r--r--poly1305-update.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/poly1305-update.c b/poly1305-update.c
index fdc72558..15ee3231 100644
--- a/poly1305-update.c
+++ b/poly1305-update.c
@@ -37,6 +37,21 @@
#include "poly1305-internal.h"
#include "md-internal.h"
+#if HAVE_NATIVE_fat_poly1305_blocks
+const uint8_t *
+_nettle_poly1305_blocks_c(struct poly1305_ctx *ctx,
+ size_t blocks, const uint8_t *m);
+
+const uint8_t *
+_nettle_poly1305_blocks_c(struct poly1305_ctx *ctx,
+ size_t blocks, const uint8_t *m)
+{
+ for (; blocks; blocks--, m += POLY1305_BLOCK_SIZE)
+ _nettle_poly1305_block(ctx, m, 1);
+ return m;
+}
+#endif
+
unsigned
_nettle_poly1305_update (struct poly1305_ctx *ctx,
uint8_t *block, unsigned index,