summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa.h
diff options
context:
space:
mode:
authortb <>2018-02-18 12:53:46 +0000
committertb <>2018-02-18 12:53:46 +0000
commit57e413e44047c6de5afd81409c4917b1071cb777 (patch)
tree2eea48ceda5c1ecb2eab68df4708270f46b1a6fd /src/lib/libcrypto/rsa/rsa.h
parentd7ec2573e9647e327eb8fddb8465b70fc269f8be (diff)
downloadopenbsd-57e413e44047c6de5afd81409c4917b1071cb777.tar.gz
openbsd-57e413e44047c6de5afd81409c4917b1071cb777.tar.bz2
openbsd-57e413e44047c6de5afd81409c4917b1071cb777.zip
Provide RSA_{g,s}et0_factors()
ok jsing
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa.h')
-rw-r--r--src/lib/libcrypto/rsa/rsa.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h
index 7e28a8766c..51b06ba6aa 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.33 2018/02/18 12:52:13 tb Exp $ */ 1/* $OpenBSD: rsa.h,v 1.34 2018/02/18 12:53:46 tb 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 *
@@ -399,6 +399,8 @@ void *RSA_get_ex_data(const RSA *r, int idx);
399int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d); 399int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
400void RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, 400void RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e,
401 const BIGNUM **d); 401 const BIGNUM **d);
402void RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);
403int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
402 404
403RSA *RSAPublicKey_dup(RSA *rsa); 405RSA *RSAPublicKey_dup(RSA *rsa);
404RSA *RSAPrivateKey_dup(RSA *rsa); 406RSA *RSAPrivateKey_dup(RSA *rsa);