diff options
author | jsing <> | 2019-11-02 13:44:19 +0000 |
---|---|---|
committer | jsing <> | 2019-11-02 13:44:19 +0000 |
commit | 62f18837e161d982ece761650e31494cb100129f (patch) | |
tree | d576a34288764200ec57445c75cdb2d1bfd0fc34 /src/lib | |
parent | cdaebd960825c6daf2bda2d2428933228e7264b5 (diff) | |
download | openbsd-62f18837e161d982ece761650e31494cb100129f.tar.gz openbsd-62f18837e161d982ece761650e31494cb100129f.tar.bz2 openbsd-62f18837e161d982ece761650e31494cb100129f.zip |
Make RSA_OAEP_PARAMs public.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/Symbols.list | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa.h | 17 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_locl.h | 17 |
3 files changed, 22 insertions, 17 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list index ac7f603482..ea6913d8f6 100644 --- a/src/lib/libcrypto/Symbols.list +++ b/src/lib/libcrypto/Symbols.list | |||
@@ -2409,6 +2409,9 @@ RSAPrivateKey_dup | |||
2409 | RSAPrivateKey_it | 2409 | RSAPrivateKey_it |
2410 | RSAPublicKey_dup | 2410 | RSAPublicKey_dup |
2411 | RSAPublicKey_it | 2411 | RSAPublicKey_it |
2412 | RSA_OAEP_PARAMS_free | ||
2413 | RSA_OAEP_PARAMS_it | ||
2414 | RSA_OAEP_PARAMS_new | ||
2412 | RSA_PKCS1_SSLeay | 2415 | RSA_PKCS1_SSLeay |
2413 | RSA_PSS_PARAMS_free | 2416 | RSA_PSS_PARAMS_free |
2414 | RSA_PSS_PARAMS_it | 2417 | RSA_PSS_PARAMS_it |
@@ -3477,6 +3480,7 @@ d2i_RSAPublicKey | |||
3477 | d2i_RSAPublicKey_bio | 3480 | d2i_RSAPublicKey_bio |
3478 | d2i_RSAPublicKey_fp | 3481 | d2i_RSAPublicKey_fp |
3479 | d2i_RSA_NET | 3482 | d2i_RSA_NET |
3483 | d2i_RSA_OAEP_PARAMS | ||
3480 | d2i_RSA_PSS_PARAMS | 3484 | d2i_RSA_PSS_PARAMS |
3481 | d2i_RSA_PUBKEY | 3485 | d2i_RSA_PUBKEY |
3482 | d2i_RSA_PUBKEY_bio | 3486 | d2i_RSA_PUBKEY_bio |
@@ -3693,6 +3697,7 @@ i2d_RSAPublicKey | |||
3693 | i2d_RSAPublicKey_bio | 3697 | i2d_RSAPublicKey_bio |
3694 | i2d_RSAPublicKey_fp | 3698 | i2d_RSAPublicKey_fp |
3695 | i2d_RSA_NET | 3699 | i2d_RSA_NET |
3700 | i2d_RSA_OAEP_PARAMS | ||
3696 | i2d_RSA_PSS_PARAMS | 3701 | i2d_RSA_PSS_PARAMS |
3697 | i2d_RSA_PUBKEY | 3702 | i2d_RSA_PUBKEY |
3698 | i2d_RSA_PUBKEY_bio | 3703 | i2d_RSA_PUBKEY_bio |
diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h index 638bad7cc6..0c6f5b920d 100644 --- a/src/lib/libcrypto/rsa/rsa.h +++ b/src/lib/libcrypto/rsa/rsa.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa.h,v 1.47 2019/11/01 15:13:05 jsing Exp $ */ | 1 | /* $OpenBSD: rsa.h,v 1.48 2019/11/02 13:44:19 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -361,6 +361,21 @@ RSA_PSS_PARAMS *d2i_RSA_PSS_PARAMS(RSA_PSS_PARAMS **a, const unsigned char **in, | |||
361 | int i2d_RSA_PSS_PARAMS(RSA_PSS_PARAMS *a, unsigned char **out); | 361 | int i2d_RSA_PSS_PARAMS(RSA_PSS_PARAMS *a, unsigned char **out); |
362 | extern const ASN1_ITEM RSA_PSS_PARAMS_it; | 362 | extern const ASN1_ITEM RSA_PSS_PARAMS_it; |
363 | 363 | ||
364 | typedef struct rsa_oaep_params_st { | ||
365 | X509_ALGOR *hashFunc; | ||
366 | X509_ALGOR *maskGenFunc; | ||
367 | X509_ALGOR *pSourceFunc; | ||
368 | |||
369 | /* Hash algorithm decoded from maskGenFunc. */ | ||
370 | X509_ALGOR *maskHash; | ||
371 | } RSA_OAEP_PARAMS; | ||
372 | |||
373 | RSA_OAEP_PARAMS *RSA_OAEP_PARAMS_new(void); | ||
374 | void RSA_OAEP_PARAMS_free(RSA_OAEP_PARAMS *a); | ||
375 | RSA_OAEP_PARAMS *d2i_RSA_OAEP_PARAMS(RSA_OAEP_PARAMS **a, const unsigned char **in, long len); | ||
376 | int i2d_RSA_OAEP_PARAMS(RSA_OAEP_PARAMS *a, unsigned char **out); | ||
377 | extern const ASN1_ITEM RSA_OAEP_PARAMS_it; | ||
378 | |||
364 | int RSA_print_fp(FILE *fp, const RSA *r, int offset); | 379 | int RSA_print_fp(FILE *fp, const RSA *r, int offset); |
365 | 380 | ||
366 | #ifndef OPENSSL_NO_BIO | 381 | #ifndef OPENSSL_NO_BIO |
diff --git a/src/lib/libcrypto/rsa/rsa_locl.h b/src/lib/libcrypto/rsa/rsa_locl.h index 621c89dc76..ef4dddd16b 100644 --- a/src/lib/libcrypto/rsa/rsa_locl.h +++ b/src/lib/libcrypto/rsa/rsa_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_locl.h,v 1.9 2019/11/01 03:45:13 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_locl.h,v 1.10 2019/11/02 13:44:19 jsing Exp $ */ |
2 | 2 | ||
3 | __BEGIN_HIDDEN_DECLS | 3 | __BEGIN_HIDDEN_DECLS |
4 | 4 | ||
@@ -13,21 +13,6 @@ RSA_PSS_PARAMS *rsa_pss_params_create(const EVP_MD *sigmd, const EVP_MD *mgf1md, | |||
13 | 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, |
14 | const EVP_MD **pmgf1md, int *psaltlen); | 14 | const EVP_MD **pmgf1md, int *psaltlen); |
15 | 15 | ||
16 | typedef struct rsa_oaep_params_st { | ||
17 | X509_ALGOR *hashFunc; | ||
18 | X509_ALGOR *maskGenFunc; | ||
19 | X509_ALGOR *pSourceFunc; | ||
20 | |||
21 | /* Hash algorithm decoded from maskGenFunc. */ | ||
22 | X509_ALGOR *maskHash; | ||
23 | } RSA_OAEP_PARAMS; | ||
24 | |||
25 | RSA_OAEP_PARAMS *RSA_OAEP_PARAMS_new(void); | ||
26 | void RSA_OAEP_PARAMS_free(RSA_OAEP_PARAMS *a); | ||
27 | RSA_OAEP_PARAMS *d2i_RSA_OAEP_PARAMS(RSA_OAEP_PARAMS **a, const unsigned char **in, long len); | ||
28 | int i2d_RSA_OAEP_PARAMS(RSA_OAEP_PARAMS *a, unsigned char **out); | ||
29 | extern const ASN1_ITEM RSA_OAEP_PARAMS_it; | ||
30 | |||
31 | extern int int_rsa_verify(int dtype, const unsigned char *m, | 16 | extern int int_rsa_verify(int dtype, const unsigned char *m, |
32 | unsigned int m_len, unsigned char *rm, size_t *prm_len, | 17 | unsigned int m_len, unsigned char *rm, size_t *prm_len, |
33 | const unsigned char *sigbuf, size_t siglen, RSA *rsa); | 18 | const unsigned char *sigbuf, size_t siglen, RSA *rsa); |