diff options
author | Richard Levitte <levitte@openssl.org> | 2021-03-24 19:51:01 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-03-26 11:25:48 +0100 |
commit | 814581bb7a1360ee054ad3500cd0907fbfeef915 (patch) | |
tree | b1b0628072018db7958c0a95dec702139aaf7755 /crypto/rsa | |
parent | doc: life-cycle descritpion for MACs (diff) | |
download | openssl-814581bb7a1360ee054ad3500cd0907fbfeef915.tar.xz openssl-814581bb7a1360ee054ad3500cd0907fbfeef915.zip |
RSA-PSS: When printing parameters, always print the trailerfield ASN.1 value
The legacy implementation would print the ASN.1 value of the trailerfield,
except when it wasn't set (i.e. is default).
For better consistency, we now always print the ASN.1 value, both in the
legacy and the provided implementation.
Fixes #14363
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14676)
Diffstat (limited to 'crypto/rsa')
-rw-r--r-- | crypto/rsa/rsa_ameth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rsa/rsa_ameth.c b/crypto/rsa/rsa_ameth.c index 067b7db12d..7a747a33ef 100644 --- a/crypto/rsa/rsa_ameth.c +++ b/crypto/rsa/rsa_ameth.c @@ -280,7 +280,7 @@ static int rsa_pss_param_print(BIO *bp, int pss_key, RSA_PSS_PARAMS *pss, if (pss->trailerField) { if (i2a_ASN1_INTEGER(bp, pss->trailerField) <= 0) goto err; - } else if (BIO_puts(bp, "BC (default)") <= 0) { + } else if (BIO_puts(bp, "01 (default)") <= 0) { goto err; } BIO_puts(bp, "\n"); |