[openssl/openssl] c6fc9f: SSKDF with KMAC should return SIZE_MAX when EVP_KD...

Shane noreply at github.com
Thu Jan 12 11:16:21 UTC 2023


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: c6fc9f75814a2fdc67d1bd7442402af5bfe196c0
      https://github.com/openssl/openssl/commit/c6fc9f75814a2fdc67d1bd7442402af5bfe196c0
  Author: slontis <shane.lontis at oracle.com>
  Date:   2023-01-12 (Thu, 12 Jan 2023)

  Changed paths:
    M doc/man7/EVP_KDF-SS.pod
    M providers/implementations/kdfs/sskdf.c
    M test/evp_kdf_test.c

  Log Message:
  -----------
  SSKDF with KMAC should return SIZE_MAX when EVP_KDF_CTX_get_kdf_size()
is used.

Fixes #19934

The existing code was looking for the digest size, and then returned
zero.

The example code in EVP_KDF-SS.pod has been corrected to not use a
digest.

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

(cherry picked from commit e8add4d379075a6daef2591edd830297d469b9f4)




More information about the openssl-commits mailing list