summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/rsa')
-rw-r--r--src/lib/libcrypto/rsa/rsa.h16
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
294const RSA_METHOD *RSA_null_method(void); 294const RSA_METHOD *RSA_null_method(void);
295 295
296DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPublicKey) 296RSA *d2i_RSAPublicKey(RSA **a, const unsigned char **in, long len);
297DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPrivateKey) 297int i2d_RSAPublicKey(const RSA *a, unsigned char **out);
298extern const ASN1_ITEM RSAPublicKey_it;
299RSA *d2i_RSAPrivateKey(RSA **a, const unsigned char **in, long len);
300int i2d_RSAPrivateKey(const RSA *a, unsigned char **out);
301extern const ASN1_ITEM RSAPrivateKey_it;
298 302
299typedef struct rsa_pss_params_st { 303typedef 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
306DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS) 310RSA_PSS_PARAMS *RSA_PSS_PARAMS_new(void);
311void RSA_PSS_PARAMS_free(RSA_PSS_PARAMS *a);
312RSA_PSS_PARAMS *d2i_RSA_PSS_PARAMS(RSA_PSS_PARAMS **a, const unsigned char **in, long len);
313int i2d_RSA_PSS_PARAMS(RSA_PSS_PARAMS *a, unsigned char **out);
314extern const ASN1_ITEM RSA_PSS_PARAMS_it;
307 315
308int RSA_print_fp(FILE *fp, const RSA *r, int offset); 316int RSA_print_fp(FILE *fp, const RSA *r, int offset);
309 317