[#RAND_set_DRBG_type] = RAND_set_DRBG_type :mrdocs: Configure the primary DRBG algorithm type for a library context. == Synopsis Declared in `<openssl/rand.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int RAND_set_DRBG_type( xref:OSSL_LIB_CTX.adoc[OSSL_LIB_CTX]* ctx, char const* drbg, char const* propq, char const* cipher, char const* digest); ---- == Description Must be called before the DRBGs are first instantiated for `ctx.` == Return Value 1 on success, or 0 on error. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#