From f488976ccff9cc811cf69f1923695bee3e0fdf58 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 6 Jan 2017 17:26:11 +0000 Subject: [PATCH] fix typo and remove duplicate macro Reviewed-by: Rich Salz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/2177) --- include/openssl/rsa.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/include/openssl/rsa.h b/include/openssl/rsa.h index b6406e99b3..95639cb2d7 100644 --- a/include/openssl/rsa.h +++ b/include/openssl/rsa.h @@ -103,10 +103,6 @@ extern "C" { RSA_pkey_ctx_ctrl(ctx, (EVP_PKEY_OP_SIGN|EVP_PKEY_OP_VERIFY), \ EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN, 0, plen) -# define EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen(ctx, len) \ - EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, EVP_PKEY_OP_KEYGEN, \ - EVP_PKEY_CTRL_RSA_PSS_SALTLEN, len, NULL) - # define EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, bits) \ RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \ EVP_PKEY_CTRL_RSA_KEYGEN_BITS, bits, NULL) @@ -143,9 +139,9 @@ extern "C" { EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT, \ EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL, 0, (void *)l) -# define EVP_PKEY_CTX_rsa_pss_key_digest(ctx, md) \ - EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSAi_PSS, \ - EVP_PKEY_OP_TYPE_CRYPT, EVP_PKEY_CTRL_MD, \ +# define EVP_PKEY_CTX_rsa_pss_keygen_md(ctx, md) \ + EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, \ + EVP_PKEY_OP_TYPE_KEYGEN, EVP_PKEY_CTRL_MD, \ 0, (void *)md) # define EVP_PKEY_CTRL_RSA_PADDING (EVP_PKEY_ALG_CTRL + 1)