diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa.h | 17 |
1 files changed, 16 insertions, 1 deletions
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 |
