MirOS Manual: DSA_generate_key(3)


DSA_GENERATE_KEY(3)          OpenSSL          DSA_GENERATE_KEY(3)

NAME

     DSA_generate_key - generate DSA key pair

SYNOPSIS

      #include <openssl/dsa.h>

      int DSA_generate_key(DSA *a);

DESCRIPTION

     DSA_generate_key() expects a to contain DSA parameters. It
     generates a new key pair and stores it in a->pub_key and
     a->priv_key.

     The PRNG must be seeded prior to calling DSA_generate_key().

RETURN VALUE

     DSA_generate_key() returns 1 on success, 0 otherwise. The
     error codes can be obtained by ERR_get_error(3).

SEE ALSO

     dsa(3), ERR_get_error(3), rand(3),
     DSA_generate_parameters(3)

HISTORY

     DSA_generate_key() is available since SSLeay 0.8.

MirOS BSD #10-current      2005-02-05                           1

Generated on 2012-02-20 02:47:02 by $MirOS: src/scripts/roff2htm,v 1.70 2011/12/03 18:21:12 tg Exp $

These manual pages and other documentation are copyrighted by their respective writers; their source is available at our CVSweb, AnonCVS, and other mirrors. The rest is Copyright © 2002‒2011 The MirOS Project, Germany.
This product includes material provided by Thorsten Glaser.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.