Skip to content

Commit fb8bde6

Browse files
authored
Add RSA_X931_PADDING to rsa.h (#2889)
### Description of changes: Adds `RSA_X931_PADDING` to "rsa.h" so that consumers w/ code referencing this symbol can compile. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.
1 parent 3f7f005 commit fb8bde6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/openssl/rsa.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,9 @@ OPENSSL_EXPORT int RSA_generate_key_fips(RSA *rsa, int bits, BN_GENCB *cb);
350350
// RSA_PKCS1_OAEP_PADDING denotes the RSAES-OAEP encryption scheme.
351351
#define RSA_PKCS1_OAEP_PADDING 4
352352

353+
// RSA_X931_PADDING is not supported. It's included so consumer compilations can succeed.
354+
#define RSA_X931_PADDING 5
355+
353356
// RSA_PKCS1_PSS_PADDING denotes the RSASSA-PSS signature scheme. This value may
354357
// not be passed into |RSA_sign_raw|, only |EVP_PKEY_CTX_set_rsa_padding|. See
355358
// also |RSA_sign_pss_mgf1| and |RSA_verify_pss_mgf1|.
@@ -607,7 +610,7 @@ OPENSSL_EXPORT RSA *RSAPrivateKey_dup(const RSA *rsa);
607610
// is available on the error queue.
608611
OPENSSL_EXPORT int RSA_check_key(const RSA *rsa);
609612

610-
// RSA_check_fips performs two FIPS related checks in addition to basic
613+
// RSA_check_fips performs two FIPS related checks in addition to basic
611614
// validity tests from RSA_check_key:
612615
// - partial public key validation (SP 800-89),
613616
// - pair-wise consistency test.

0 commit comments

Comments
 (0)