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

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


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 73c5668a968bd47262ef8acd96d18c044b97d550
      https://github.com/openssl/openssl/commit/73c5668a968bd47262ef8acd96d18c044b97d550
  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