summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa.h
diff options
context:
space:
mode:
authortb <>2022-01-05 20:33:49 +0000
committertb <>2022-01-05 20:33:49 +0000
commit96a387aa79534030b5f4e06cefb74062f01c4f87 (patch)
tree43a16eca5c4aaff3aaf27fb114032f18eb704c82 /src/lib/libcrypto/dsa/dsa.h
parentb86fb16a7f2ecb74d2fd9c11640ea10f44a18497 (diff)
downloadopenbsd-96a387aa79534030b5f4e06cefb74062f01c4f87.tar.gz
openbsd-96a387aa79534030b5f4e06cefb74062f01c4f87.tar.bz2
openbsd-96a387aa79534030b5f4e06cefb74062f01c4f87.zip
Prepare to provide DSA_get0_{p,q,g,{priv,pub}_key}()
ok inoguchi jsing
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa.h')
-rw-r--r--src/lib/libcrypto/dsa/dsa.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/dsa/dsa.h b/src/lib/libcrypto/dsa/dsa.h
index 15536f63e2..391f02c5a4 100644
--- a/src/lib/libcrypto/dsa/dsa.h
+++ b/src/lib/libcrypto/dsa/dsa.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: dsa.h,v 1.31 2021/11/29 20:13:25 tb Exp $ */ 1/* $OpenBSD: dsa.h,v 1.32 2022/01/05 20:33:49 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 *
@@ -267,6 +267,13 @@ void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q,
267int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g); 267int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g);
268void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key); 268void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key);
269int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key); 269int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key);
270#if defined(LIBRESSL_OPAQUE_DSA) || defined(LIBRESSL_CRYPTO_INTERNAL)
271const BIGNUM *DSA_get0_p(const DSA *d);
272const BIGNUM *DSA_get0_q(const DSA *d);
273const BIGNUM *DSA_get0_g(const DSA *d);
274const BIGNUM *DSA_get0_pub_key(const DSA *d);
275const BIGNUM *DSA_get0_priv_key(const DSA *d);
276#endif
270void DSA_clear_flags(DSA *d, int flags); 277void DSA_clear_flags(DSA *d, int flags);
271int DSA_test_flags(const DSA *d, int flags); 278int DSA_test_flags(const DSA *d, int flags);
272void DSA_set_flags(DSA *d, int flags); 279void DSA_set_flags(DSA *d, int flags);