Skip to content

Commit

Permalink
Fix documentation regarding KMAC sizes
Browse files Browse the repository at this point in the history
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 #22614)
  • Loading branch information
flinkflonk authored and hlandau committed Nov 6, 2023
1 parent 0c2aabb commit 56d1ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/man7/EVP_MAC-KMAC.pod
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 56d1ab3

Please sign in to comment.