summaryrefslogtreecommitdiff
path: root/lib/libcrypto/rsa/rsa.h
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-02-18 12:53:47 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-02-18 12:53:47 +0000
commit132bb13a3574b2ba7f5461684248daf021448f94 (patch)
tree91b3812fac37d3c935a4f9163c5d8096b884b453 /lib/libcrypto/rsa/rsa.h
parent2787ecbd158905f983fd0e36f271186fbe5c4cc0 (diff)
Provide RSA_{g,s}et0_factors()
ok jsing
Diffstat (limited to 'lib/libcrypto/rsa/rsa.h')
-rw-r--r--lib/libcrypto/rsa/rsa.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libcrypto/rsa/rsa.h b/lib/libcrypto/rsa/rsa.h
index 7e28a8766c6..51b06ba6aa5 100644
--- a/lib/libcrypto/rsa/rsa.h
+++ b/lib/libcrypto/rsa/rsa.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa.h,v 1.33 2018/02/18 12:52:13 tb Exp $ */
+/* $OpenBSD: rsa.h,v 1.34 2018/02/18 12:53:46 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -399,6 +399,8 @@ void *RSA_get_ex_data(const RSA *r, int idx);
int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
void RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e,
const BIGNUM **d);
+void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);
+int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
RSA *RSAPublicKey_dup(RSA *rsa);
RSA *RSAPrivateKey_dup(RSA *rsa);