logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

EVP_KDF-HMAC-DRBG - The HMAC DRBG DETERMINISTIC EVP_KDF implementation

Conforming To

RFC 6979

Description

Support for a deterministic HMAC DRBG using the EVP_KDF API. This is similar to EVP_RAND-HMAC-DRBG(7), but uses fixed values for its entropy and nonce values. This is used to generate deterministic nonce value required by ECDSA and DSA (as defined in RFC 6979). Identity "HMAC-DRBG-KDF" is the name for this implementation; it can be used with the EVP_KDF_fetch() function. Supportedparameters The supported parameters are: "digest" (OSSL_DRBG_PARAM_DIGEST) <UTF8 string> "properties" (OSSL_DRBG_PARAM_PROPERTIES) <UTF8 string> These parameters work as described in "PARAMETERS" in EVP_KDF(3). "entropy" (OSSL_KDF_PARAM_HMACDRBG_ENTROPY) <octet string> Sets the entropy bytes supplied to the HMAC-DRBG. "nonce" (OSSL_KDF_PARAM_HMACDRBG_NONCE) <octet string> Sets the nonce bytes supplied to the HMAC-DRBG.

History

The EVP_KDF-HMAC-DRBG functionality was added in OpenSSL 3.2.

Name

EVP_KDF-HMAC-DRBG - The HMAC DRBG DETERMINISTIC EVP_KDF implementation

Notes

A context for KDF HMAC DRBG can be obtained by calling: EVP_KDF *kdf = EVP_KDF_fetch(NULL, "HMAC-DRBG-KDF", NULL); EVP_KDF_CTX *kdf_ctx = EVP_KDF_CTX_new(kdf, NULL);

See Also

EVP_KDF(3), "PARAMETERS" in EVP_KDF(3)

See Also