diff options
author | jsing <> | 2019-11-01 03:45:13 +0000 |
---|---|---|
committer | jsing <> | 2019-11-01 03:45:13 +0000 |
commit | 06b54e9217af744c680ff812191733948cfafa40 (patch) | |
tree | 76c7f4e1cab4725386517c297aacf6d5616d0c59 /src/lib/libcrypto/rsa/rsa_locl.h | |
parent | 207d5072457060a56e0ae65ce9e652e88178d798 (diff) | |
download | openbsd-06b54e9217af744c680ff812191733948cfafa40.tar.gz openbsd-06b54e9217af744c680ff812191733948cfafa40.tar.bz2 openbsd-06b54e9217af744c680ff812191733948cfafa40.zip |
Update RSA ASN.1 code to handle RSA-PSS.
From OpenSSL 1.1.1d.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_locl.h')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_locl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_locl.h b/src/lib/libcrypto/rsa/rsa_locl.h index d69946f95c..621c89dc76 100644 --- a/src/lib/libcrypto/rsa/rsa_locl.h +++ b/src/lib/libcrypto/rsa/rsa_locl.h | |||
@@ -1,9 +1,13 @@ | |||
1 | /* $OpenBSD: rsa_locl.h,v 1.8 2019/10/31 13:56:29 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_locl.h,v 1.9 2019/11/01 03:45:13 jsing Exp $ */ |
2 | 2 | ||
3 | __BEGIN_HIDDEN_DECLS | 3 | __BEGIN_HIDDEN_DECLS |
4 | 4 | ||
5 | #define RSA_MIN_MODULUS_BITS 512 | 5 | #define RSA_MIN_MODULUS_BITS 512 |
6 | 6 | ||
7 | /* Macros to test if a pkey or ctx is for a PSS key */ | ||
8 | #define pkey_is_pss(pkey) (pkey->ameth->pkey_id == EVP_PKEY_RSA_PSS) | ||
9 | #define pkey_ctx_is_pss(ctx) (ctx->pmeth->pkey_id == EVP_PKEY_RSA_PSS) | ||
10 | |||
7 | RSA_PSS_PARAMS *rsa_pss_params_create(const EVP_MD *sigmd, const EVP_MD *mgf1md, | 11 | RSA_PSS_PARAMS *rsa_pss_params_create(const EVP_MD *sigmd, const EVP_MD *mgf1md, |
8 | int saltlen); | 12 | int saltlen); |
9 | int rsa_pss_get_param(const RSA_PSS_PARAMS *pss, const EVP_MD **pmd, | 13 | int rsa_pss_get_param(const RSA_PSS_PARAMS *pss, const EVP_MD **pmd, |