DSA_generate_parameters

Generate DSA domain parameters with a legacy progress callback (deprecated).

Synopsis

Declared in <openssl/dsa.h>

[[deprecated]]
DSA*
DSA_generate_parameters(
    int bits,
    unsigned char* seed,
    int seed_len,
    int* counter_ret,
    unsigned long* h_ret,
    void(* callback)(int, int, void*),
    void* cb_arg);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Newly allocated DSA with generated parameters, or NULL on failure.

Parameters

NameDescription
bitsDesired length of the prime p in bits.
seedOptional seed bytes for reproducible generation, or NULL.
seed_lenLength of seed in bytes.
counter_retOptional out-parameter receiving the counter used, or NULL.
h_retOptional out-parameter receiving the h value used, or NULL.
callbackOptional progress callback, or NULL.
cb_argOpaque pointer passed to callback.