[openssl/openssl] 962c7e: Avoid divide-by-zero in kmac_prov.c's bytepad()

Evgeny Shtanov noreply at github.com
Mon Oct 9 10:07:27 UTC 2023


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: 962c7e0cb73fa6d83eee4bc57eb6e10c690509a1
      https://github.com/openssl/openssl/commit/962c7e0cb73fa6d83eee4bc57eb6e10c690509a1
  Author: Klavishnik <evg.shtanov at gmail.com>
  Date:   2023-10-09 (Mon, 09 Oct 2023)

  Changed paths:
    M providers/implementations/macs/kmac_prov.c

  Log Message:
  -----------
  Avoid divide-by-zero in kmac_prov.c's bytepad()

This would happen if EVP_MD_get_block_size() returned 0
so we return an error instead.

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Tim Hudson <tjh at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21698)

(cherry picked from commit 91895e39b10033178e662fc7427a09d7562cf8e1)




More information about the openssl-commits mailing list