Ingo Franzki 184d29dbab 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@linux.ibm.com>

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24462)
2024-05-28 08:48:36 +02:00
..
2024-04-25 11:07:20 +02:00
2023-12-12 19:45:09 +01:00
2024-04-09 13:43:27 +02:00
2023-09-28 14:23:29 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2022-08-23 11:08:11 +10:00
2024-04-09 13:43:26 +02:00
2024-04-09 13:43:26 +02:00
2023-12-12 16:12:32 +00:00
2023-09-28 14:23:29 +01:00
2024-04-09 13:43:26 +02:00
2023-09-28 14:23:29 +01:00
2024-04-15 09:09:32 +02:00
2022-09-20 08:18:25 +01:00
2022-05-03 13:34:51 +01:00
2022-05-03 13:34:51 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2022-05-03 13:34:51 +01:00
2023-09-28 14:23:29 +01:00
2024-04-09 13:43:26 +02:00
2020-05-13 06:28:36 +02:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2024-04-09 13:43:26 +02:00
2024-04-09 13:43:26 +02:00
2023-12-12 19:47:07 +01:00
2023-09-07 09:59:15 +01:00
2019-09-28 20:26:36 +02:00