Configure the primary DRBG algorithm type for a library context.
Declared in <openssl/rand.h>
int
RAND_set_DRBG_type(
OSSL_LIB_CTX* ctx,
char const* drbg,
char const* propq,
char const* cipher,
char const* digest);
Must be called before the DRBGs are first instantiated for ctx.
1 on success, or 0 on error.
| Name | Description |
|---|---|
| ctx | Library context whose RNG is configured, or NULL for the default. |
| drbg | DRBG algorithm name (for example "HASH-DRBG" or "CTR-DRBG"), or NULL for the default. |
| propq | Property query for fetching the DRBG, or NULL. |
| cipher | Cipher name required by CTR-DRBG, or NULL when unused. |
| digest | Digest name required by HASH-DRBG/HMAC-DRBG, or NULL when unused. |