Fix documentation regarding KMAC sizes
authorMichael Hinz <michael@hinz.no>
Fri, 3 Nov 2023 13:17:39 +0000 (14:17 +0100)
committerHugo Landau <hlandau@openssl.org>
Mon, 6 Nov 2023 07:49:34 +0000 (07:49 +0000)
As per recommendation by jfinkhaeuser, this documents the defaults for
KMAC-128 as 32 and for KMAC-256 as 64. The code already accomodates for
these values, so no changes are needed there.

Fixes #22381

CLA: trivial

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22614)

(cherry picked from commit 56d1ab3b6c7468ce0f534f09e305a539101f9c3d)

doc/man7/EVP_MAC-KMAC.pod

index 0214c1e254076a521bebbb9eb85940e9cd3ecb3e..bdadb0ff6047727d034085f5faa3d7dbf8209f0d 100644 (file)
@@ -51,7 +51,7 @@ It is an optional value with a length of at most 512 bytes, and is empty by defa
 =item "size" (B<OSSL_MAC_PARAM_SIZE>) <unsigned integer>
 
 Sets the MAC size.
-By default, it is 16 for C<KMAC-128> and 32 for C<KMAC-256>.
+By default, it is 32 for C<KMAC-128> and 64 for C<KMAC-256>.
 
 =item "block-size" (B<OSSL_MAC_PARAM_SIZE>) <unsigned integer>