[openssl/openssl] 21b98d: rsa: Accept NULL OAEP label for backward compatibi...

Daiki Ueno noreply at github.com
Wed Oct 18 14:28:17 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 21b98da9d80c561b6273b0c51c259196d6740e70
      https://github.com/openssl/openssl/commit/21b98da9d80c561b6273b0c51c259196d6740e70
  Author: Daiki Ueno <dueno at redhat.com>
  Date:   2023-10-18 (Wed, 18 Oct 2023)

  Changed paths:
    M crypto/rsa/rsa_lib.c
    M test/evp_extra_test.c

  Log Message:
  -----------
  rsa: Accept NULL OAEP label for backward compatibility

According to the manual page, EVP_PKEY_CTX_set0_rsa_oaep_label()
should accept NULL as the label argument, though the function
currently rejects it while setting the corresponding octet string
parameter with OSSL_PARAM_construct_octet_string, which expects
non-NULL input.  This adds a workaround to the caller for backward
compatibility.

Signed-off-by: Daiki Ueno <dueno at redhat.com>

Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22397)




More information about the openssl-commits mailing list