Generate DSA domain parameters with a legacy progress callback (deprecated).
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);
Deprecated. Use of this entity is allowed but discouraged.
Newly allocated DSA with generated parameters, or NULL on failure.
| Name | Description |
|---|---|
| bits | Desired length of the prime p in bits. |
| seed | Optional seed bytes for reproducible generation, or NULL. |
| seed_len | Length of seed in bytes. |
| counter_ret | Optional out-parameter receiving the counter used, or NULL. |
| h_ret | Optional out-parameter receiving the h value used, or NULL. |
| callback | Optional progress callback, or NULL. |
| cb_arg | Opaque pointer passed to callback. |