diff options
author | Niels Möller <nisse@lysator.liu.se> | 2022-10-31 19:04:23 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2022-10-31 19:04:23 +0100 |
commit | bb9c0a1ed4e6b3be4c5a259d3a6192960bc0c432 (patch) | |
tree | 3faef03673acc892d9643e9dc4d61b61a3c2fc61 /poly1305-internal.h | |
parent | f9c2e9bb6cff5d14f4e6fcee806eeb59837116cc (diff) | |
download | nettle-bb9c0a1ed4e6b3be4c5a259d3a6192960bc0c432.tar.gz |
New function _nettle_poly1305_update.
Diffstat (limited to 'poly1305-internal.h')
-rw-r--r-- | poly1305-internal.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/poly1305-internal.h b/poly1305-internal.h index 9932d524..a6afd466 100644 --- a/poly1305-internal.h +++ b/poly1305-internal.h @@ -53,7 +53,15 @@ void _nettle_poly1305_digest (struct poly1305_ctx *ctx, union nettle_block16 *s) /* Process one block. */ void _nettle_poly1305_block (struct poly1305_ctx *ctx, const uint8_t *m, unsigned high); - +/* Updates CTX by hashing M, which must be an integral number of + blocks. For convenience, returns a pointer to the end of the + data. Implies 128 set on all input blocks. */ +const uint8_t * +_nettle_poly1305_blocks (struct poly1305_ctx *ctx, size_t blocks, const uint8_t *m); + +unsigned +_nettle_poly1305_update (struct poly1305_ctx *ctx, uint8_t *buffer, unsigned index, + size_t length, const uint8_t *m); #ifdef __cplusplus } #endif |