diff options
author | tb <> | 2018-02-18 14:58:12 +0000 |
---|---|---|
committer | tb <> | 2018-02-18 14:58:12 +0000 |
commit | 1b561f846b060aedbadbe38a4aef0bb347dbf2e0 (patch) | |
tree | 2f49be312f3f68a1760dd001d14bafc0a40e6123 /src/lib/libcrypto/dsa/dsa.h | |
parent | 629e6de4bc68d390bb4829a7656219e3e0efeb4a (diff) | |
download | openbsd-1b561f846b060aedbadbe38a4aef0bb347dbf2e0.tar.gz openbsd-1b561f846b060aedbadbe38a4aef0bb347dbf2e0.tar.bz2 openbsd-1b561f846b060aedbadbe38a4aef0bb347dbf2e0.zip |
Provide {DH,DSA}_set0_key(). Requested by sthen.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa.h')
-rw-r--r-- | src/lib/libcrypto/dsa/dsa.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/dsa/dsa.h b/src/lib/libcrypto/dsa/dsa.h index 21e5baa235..20db7f91c1 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.25 2018/02/18 12:50:58 tb Exp $ */ | 1 | /* $OpenBSD: dsa.h,v 1.26 2018/02/18 14:58:12 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 | * |
@@ -261,6 +261,7 @@ void DSA_get0_pqg(const DSA *d, const BIGNUM **p, const BIGNUM **q, | |||
261 | const BIGNUM **g); | 261 | const BIGNUM **g); |
262 | int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g); | 262 | int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g); |
263 | void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key); | 263 | void DSA_get0_key(const DSA *d, const BIGNUM **pub_key, const BIGNUM **priv_key); |
264 | int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key); | ||
264 | 265 | ||
265 | #define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \ | 266 | #define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \ |
266 | EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \ | 267 | EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \ |