X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/c52f30b341c3abe9647e8f7b6d7f0d75b228765d..2c70dfbf7facca44ff6074d865f429a6ae0ace5e:/symm/poly1305.h diff --git a/symm/poly1305.h b/symm/poly1305.h index 14424283..2441ad05 100644 --- a/symm/poly1305.h +++ b/symm/poly1305.h @@ -179,6 +179,23 @@ extern void poly1305_hash(poly1305_ctx */*ctx*/, extern void poly1305_flush(poly1305_ctx */*ctx*/); +/* --- @poly1305_flushzero@ --- * + * + * Arguments: @poly1305_ctx *ctx@ = MAC context to flush + * + * Returns: --- + * + * Use: Forces any buffered message data in the context to be + * processed, by hashing between zero and fifteen additional + * zero bytes. Like @poly1305_flush@, this has no effect if the + * the message processed so far is a whole number of blocks. + * Unlike @poly1305_flush@, the behaviour if the message is not + * a whole number of blocks is equivalent to actually hashing + * some extra data. + */ + +extern void poly1305_flushzero(poly1305_ctx */*ctx*/); + /* --- @poly1305_concat@ --- * * * Arguments: @poly1305_ctx *ctx@ = destination context