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/libcrypto/rsa/rsa.h | |
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/libcrypto/rsa/rsa.h')
-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 |