summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_locl.h
diff options
context:
space:
mode:
authorjsing <>2019-11-01 03:45:13 +0000
committerjsing <>2019-11-01 03:45:13 +0000
commit06b54e9217af744c680ff812191733948cfafa40 (patch)
tree76c7f4e1cab4725386517c297aacf6d5616d0c59 /src/lib/libcrypto/rsa/rsa_locl.h
parent207d5072457060a56e0ae65ce9e652e88178d798 (diff)
downloadopenbsd-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.h6
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
7RSA_PSS_PARAMS *rsa_pss_params_create(const EVP_MD *sigmd, const EVP_MD *mgf1md, 11RSA_PSS_PARAMS *rsa_pss_params_create(const EVP_MD *sigmd, const EVP_MD *mgf1md,
8 int saltlen); 12 int saltlen);
9int rsa_pss_get_param(const RSA_PSS_PARAMS *pss, const EVP_MD **pmd, 13int rsa_pss_get_param(const RSA_PSS_PARAMS *pss, const EVP_MD **pmd,