You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function now checks whether the setting of the digest was successful.
This is of particular importance when having a hash where this API is defined,
but the setting will never change the digest size. This is now checked and
if identified the call returns an error.
This prevents accidental use of a hash in lieu of an XOF. Yet, it allows
using a hash when the set digest size is identical to the requested size.
Such scenario is used in ML-DSA where either a SHA3-512, SHA2-512 or SHAKE-256
is allowed to be used where the digest size is always 512 bits.
Signed-off-by: Stephan Mueller <smueller@chronox.de>
0 commit comments