From 90c573eba184fe31184d14ce10367f810fa1d417 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Wed, 2 Nov 2016 11:57:56 +0000 Subject: convert DSA and EC manuals from pod to mdoc --- src/lib/libcrypto/man/DSA_dup_DH.3 | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/lib/libcrypto/man/DSA_dup_DH.3 (limited to 'src/lib/libcrypto/man/DSA_dup_DH.3') diff --git a/src/lib/libcrypto/man/DSA_dup_DH.3 b/src/lib/libcrypto/man/DSA_dup_DH.3 new file mode 100644 index 0000000000..c8b7ec60ab --- /dev/null +++ b/src/lib/libcrypto/man/DSA_dup_DH.3 @@ -0,0 +1,41 @@ +.Dd $Mdocdate: November 2 2016 $ +.Dt DSA_DUP_DH 3 +.Os +.Sh NAME +.Nm DSA_dup_DH +.Nd create a DH structure out of DSA structure +.Sh SYNOPSIS +.In openssl/dsa.h +.Ft DH * +.Fo DSA_dup_DH +.Fa "const DSA *r" +.Fc +.Sh DESCRIPTION +.Fn DSA_dup_DH +duplicates +.Vt DSA +parameters/keys as +.Vt DH +parameters/keys. +.Fa r->q +is lost during that conversion, but the resulting +.Vt DH +parameters contain its length. +.Sh RETURN VALUE +.Fn DSA_dup_DH +returns the new +.Vt DH +structure or +.Dv NULL +on error. +The error codes can be obtained by +.Xr ERR_get_error 3 . +.Sh SEE ALSO +.Xr dh 3 , +.Xr dsa 3 , +.Xr ERR_get_error 3 +.Sh HISTORY +.Fn DSA_dup_DH +was added in OpenSSL 0.9.4. +.Sh CAVEATS +Be careful to avoid small subgroup attacks when using this. -- cgit v1.2.3-55-g6feb