From ba27bbe7c97acd379dc1c4459f57dce97b4c85b8 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 12 Jan 2024 01:11:58 +0000 Subject: [PATCH] HACKING-CRYPTO: more fixups [ci skip] Follow-up to f64885b6ab9bbdae2da9ebd70f4dd5cea56e838a #1297 --- docs/HACKING-CRYPTO | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/HACKING-CRYPTO b/docs/HACKING-CRYPTO index d2518612..694cd4d8 100644 --- a/docs/HACKING-CRYPTO +++ b/docs/HACKING-CRYPTO @@ -71,11 +71,13 @@ Must return 1 for success and 0 for failure. int _libssh2_hmac_update(libssh2_hmac_ctx *ctx, const void *data, int datalen); Continue computation of an HMAC on datalen bytes at data using context ctx. +Must return 1 for success and 0 for failure. int _libssh2_hmac_final(libssh2_hmac_ctx *ctx, void output[]); Get the computed HMAC from context ctx into the output buffer. The minimum data buffer size depends on the HMAC hash algorithm. +Must return 1 for success and 0 for failure. void _libssh2_hmac_cleanup(libssh2_hmac_ctx *ctx); Releases the HMAC computation context at ctx.