[openssl/openssl] 184d29: speed: Fix regression of measuring shake with -evp

Ingo Franzki noreply at github.com
Tue May 28 06:51:37 UTC 2024


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 184d29dbabbb6c7a5cc829d3ac4b966f781d2b2e
      https://github.com/openssl/openssl/commit/184d29dbabbb6c7a5cc829d3ac4b966f781d2b2e
  Author: Ingo Franzki <ifranzki at linux.ibm.com>
  Date:   2024-05-28 (Tue, 28 May 2024)

  Changed paths:
    M apps/speed.c

  Log Message:
  -----------
  speed: Fix regression of measuring shake with -evp

After commit b911fef216d1386210ec24e201d54d709528abb4 speed with shake128 or
shake256 does not run anymore:

  # openssl speed -seconds 1 -evp shake128 -bytes 256
  Doing shake128 ops for 1s on 256 size blocks: shake128 error!
  000003FF9B7F2080:error:1C8000A6:Provider routines:keccak_final:invalid digest
                     length:providers/implementations/digests/sha3_prov.c:117:
  version: 3.4.0-dev
  ...
  type            256 bytes
  shake128             0.00

Function EVP_Digest_loop() must use EVP_DigestInit_ex2(), EVP_DigestUpdate(),
and EVP_DigestFinalXOF() in case of shake instead of just EVP_Digest() to get
around this.

Signed-off-by: Ingo Franzki <ifranzki at linux.ibm.com>

Reviewed-by: Paul Dale <ppzgs1 at gmail.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24462)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications


More information about the openssl-commits mailing list