DSA_generate_parameters_ex

Generate DSA domain parameters into an existing DSA object (deprecated).

Synopsis

Declared in <openssl/dsa.h>

[[deprecated]]
int
DSA_generate_parameters_ex(
    DSA* dsa,
    int bits,
    unsigned char const* seed,
    int seed_len,
    int* counter_ret,
    unsigned long* h_ret,
    BN_GENCB* cb);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
dsaDestination DSA that receives p, q, and g.
bitsDesired length of the prime p in bits.
seedOptional seed for deterministic generation, or NULL.
seed_lenLength of seed in bytes.
counter_retOptional output for the generation counter, or NULL.
h_retOptional output for the generator counter h, or NULL.
cbOptional progress callback, or NULL.