EVP_KDF-HMAC-DRBG(7ossl)
β¨ NAME β¨
EVP_KDF-HMAC-DRBGβ the HMAC DRBG DETERMINISTICEVP_KDFimplementation. Yup, that's the whole vibe of thisEVP_KDF-HMAC-DRBG(7ossl)page, bestie. π
π DESCRIPTION π
Support for a deterministic HMAC DRBG using the EVP_KDF API. Itβs similar to EVP_RAND-HMAC-DRBG(7), but it uses fixed values for its entropy and nonce values. This is used to generate the deterministic nonce value required by ECDSA and DSA (as defined in RFC 6979). No cap, that determinism is the whole point. π₯
πͺͺ Identity
"HMAC-DRBG-KDF" is the name for this implementation; it can be used with the EVP_KDF_fetch() function. Thatβs the name to remember, iykyk. π
ποΈ Supported parameters
The supported parameters are:
"digest"(OSSL_DRBG_PARAM_DIGEST)<UTF8 string>β one of the supported parameters, bestie."properties"(OSSL_DRBG_PARAM_PROPERTIES)<UTF8 string>β another supported parameter. These parameters work as described in"PARAMETERS"inEVP_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.
π 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);
Literally just like that. Copy it, paste it, live your truth. π
π§ CONFORMING TO π§
RFC 6979. Periodt. β
π SEE ALSO π
EVP_KDF(3)"PARAMETERS"inEVP_KDF(3)
Go peek at those if you want the full lore. π«Ά
πΈ HISTORY πΈ
The EVP_KDF-HMAC-DRBG functionality was added in OpenSSL 3.2. Itβs giving fresh-from-the-release-notes main character energy. π¦
π COPYRIGHT π
Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
xoxo, OpenSSL 3.5.6 / 2026-04-07 β EVP_KDF-HMAC-DRBG(7ossl) π
β¨
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms