[openssl/openssl] b7cf9d: SHAKE documentation updates for default output len...

Shane noreply at github.com
Wed Aug 17 14:20:05 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: b7cf9dd2393de8e90a15e83466d9b8b781b18385
      https://github.com/openssl/openssl/commit/b7cf9dd2393de8e90a15e83466d9b8b781b18385
  Author: slontis <shane.lontis at oracle.com>
  Date:   2022-08-17 (Wed, 17 Aug 2022)

  Changed paths:
    M apps/dgst.c
    M doc/man1/openssl-dgst.pod.in
    M doc/man7/EVP_MD-SHAKE.pod
    M test/recipes/20-test_dgst.t

  Log Message:
  -----------
  SHAKE documentation updates for default output length.

Fixes #18586

In order to not break existing applications the OpenSSL documentation
related to SHAKE has been updated.

Background:

All digests algorithms (including XOF's) use the bitlen as the default output length.
This results in a security strength of bitlen / 2.

This means that SHAKE128 will by default have an output length of 16
bytes and a security strength of 64 bits.

For SHAKE256 the default output length is 32 bytes and has a security
strength of 128 bits.

This behaviour was present in 1.1.1 and has been duplicated in the
provider SHAKE algorithms for 3.0.

The SHAKE XOF algorithms have a security strength of
min(bitlen, output xof length in bits / 2).

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18622)




More information about the openssl-commits mailing list