diff options
Diffstat (limited to 'src/lib/libcrypto/rsa')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h index d240294809..febeb297d0 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.28 2016/06/30 02:02:06 bcook Exp $ */ | 1 | /* $OpenBSD: rsa.h,v 1.29 2016/09/04 17:25:27 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 | * |
@@ -293,8 +293,12 @@ const RSA_METHOD *RSA_PKCS1_SSLeay(void); | |||
293 | 293 | ||
294 | const RSA_METHOD *RSA_null_method(void); | 294 | const RSA_METHOD *RSA_null_method(void); |
295 | 295 | ||
296 | DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPublicKey) | 296 | RSA *d2i_RSAPublicKey(RSA **a, const unsigned char **in, long len); |
297 | DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPrivateKey) | 297 | int i2d_RSAPublicKey(const RSA *a, unsigned char **out); |
298 | extern const ASN1_ITEM RSAPublicKey_it; | ||
299 | RSA *d2i_RSAPrivateKey(RSA **a, const unsigned char **in, long len); | ||
300 | int i2d_RSAPrivateKey(const RSA *a, unsigned char **out); | ||
301 | extern const ASN1_ITEM RSAPrivateKey_it; | ||
298 | 302 | ||
299 | typedef struct rsa_pss_params_st { | 303 | typedef struct rsa_pss_params_st { |
300 | X509_ALGOR *hashAlgorithm; | 304 | X509_ALGOR *hashAlgorithm; |
@@ -303,7 +307,11 @@ typedef struct rsa_pss_params_st { | |||
303 | ASN1_INTEGER *trailerField; | 307 | ASN1_INTEGER *trailerField; |
304 | } RSA_PSS_PARAMS; | 308 | } RSA_PSS_PARAMS; |
305 | 309 | ||
306 | DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS) | 310 | RSA_PSS_PARAMS *RSA_PSS_PARAMS_new(void); |
311 | void RSA_PSS_PARAMS_free(RSA_PSS_PARAMS *a); | ||
312 | RSA_PSS_PARAMS *d2i_RSA_PSS_PARAMS(RSA_PSS_PARAMS **a, const unsigned char **in, long len); | ||
313 | int i2d_RSA_PSS_PARAMS(RSA_PSS_PARAMS *a, unsigned char **out); | ||
314 | extern const ASN1_ITEM RSA_PSS_PARAMS_it; | ||
307 | 315 | ||
308 | int RSA_print_fp(FILE *fp, const RSA *r, int offset); | 316 | int RSA_print_fp(FILE *fp, const RSA *r, int offset); |
309 | 317 | ||