EVP_RAND_nonce

Generate a nonce of outlen bytes from RAND context ctx.

Synopsis

Declared in <openssl/evp.h>

int
EVP_RAND_nonce(
    EVP_RAND_CTX* ctx,
    unsigned char* out,
    size_t outlen);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxInstantiated RAND context.
outBuffer receiving the nonce.
outlenNumber of nonce bytes to produce.