mbedtls_sha3_finish() function
This function finishes the SHA-3 operation, and writes the result to the output buffer.
Arguments
ctx
The SHA-3 context. This must be initialized and have a hash operation started.
output
The SHA-3 checksum result. This must be a writable buffer of length \c olen bytes.
olen
Defines the length of output buffer (in bytes). For SHA-3 224, SHA-3 256, SHA-3 384 and SHA-3 512 \c olen must equal to 28, 32, 48 and 64, respectively.
Return value
\c 0 on success. A negative error code on failure.