diff options
author | 2016-11-02 11:57:56 +0000 | |
---|---|---|
committer | 2016-11-02 11:57:56 +0000 | |
commit | fec9a10d1e65b5dbb681babfa740c740d3fe1785 (patch) | |
tree | 8a0062f4e207483b6caeff38acb66f431f13891b /lib/libcrypto/man/DSA_generate_key.3 | |
parent | Expand LHASH_OF, IMPLEMENT_LHASH_DOALL_ARG_FN and LHASH_DOALL_ARG_FN (diff) | |
download | wireguard-openbsd-fec9a10d1e65b5dbb681babfa740c740d3fe1785.tar.xz wireguard-openbsd-fec9a10d1e65b5dbb681babfa740c740d3fe1785.zip |
convert DSA and EC manuals from pod to mdoc
Diffstat (limited to 'lib/libcrypto/man/DSA_generate_key.3')
-rw-r--r-- | lib/libcrypto/man/DSA_generate_key.3 | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/libcrypto/man/DSA_generate_key.3 b/lib/libcrypto/man/DSA_generate_key.3 new file mode 100644 index 00000000000..cf0872463f9 --- /dev/null +++ b/lib/libcrypto/man/DSA_generate_key.3 @@ -0,0 +1,34 @@ +.Dd $Mdocdate: November 2 2016 $ +.Dt DSA_GENERATE_KEY 3 +.Os +.Sh NAME +.Nm DSA_generate_key +.Nd generate DSA key pair +.Sh SYNOPSIS +.In openssl/dsa.h +.Ft int +.Fo DSA_generate_key +.Fa "DSA *a" +.Fc +.Sh DESCRIPTION +.Fn DSA_generate_key +expects +.Fa a +to contain DSA parameters. +It generates a new key pair and stores it in +.Fa a->pub_key +and +.Fa a->priv_key . +.Sh RETURN VALUE +.Fn DSA_generate_key +returns 1 on success or 0 otherwise. +The error codes can be obtained by +.Xr ERR_get_error 3 . +.Sh SEE ALSO +.Xr dsa 3 , +.Xr DSA_generate_parameters 3 , +.Xr ERR_get_error 3 , +.Xr rand 3 +.Sh HISTORY +.Fn DSA_generate_key +is available since SSLeay 0.8. |