LIFE_CYCLE-KDF(7ossl)
okay bestie, welcome to LIFE_CYCLE-KDF(7ossl) β the OpenSSL manual page for the KDF algorithm life-cycle, and itβs giving cryptographic coming-of-age arc πβ¨
π NAME π
life_cycle-kdf β the KDF algorithm life-cycle. Thatβs literally the whole vibe. π
π¦ DESCRIPTION π¦
All key derivation functions (KDFs) and pseudo random functions (PRFs) go through a number of stages in their life-cycle, like a little glow-up journey π±β‘οΈπ:
startβ the KDF/PRF before it has been allocated. This is the starting state for any life-cycle transitions. Pre-allocation era, no cap.newedβ the KDF/PRF after it has been allocated. It has entered the chat π«Άderivingβ the KDF/PRF when it is set up and capable of generating output. Main character energy: it can actually cook π₯freedβ entered when the KDF/PRF is freed. This is the terminal state for all life-cycle transitions. The finale, the end credits, no going back π
π« State Transition Diagram π«
The usual life-cycle of a KDF/PRF is illustrated:
+-------------------+
| start |
+-------------------+
|
| EVP_KDF_CTX_new
v
+-------------------+
| newed | <+
+-------------------+ |
| |
| EVP_KDF_derive |
v | EVP_KDF_CTX_reset
EVP_KDF_derive +-------------------+ |
+ - - - - - - - - | | |
' | deriving | |
+ - - - - - - - -> | | -+
+-------------------+
|
| EVP_KDF_CTX_free
v
+-------------------+
| freed |
+-------------------+
π Formal State Transitions π
This section defines all of the legal state transitions. This is the canonical list, bestie β no improvising, this is the official choreography π:
EVP_KDF_CTX_newβ fromstartβnewedEVP_KDF_deriveβ fromnewedβderiving; fromderivingβderivingEVP_KDF_CTX_freeβ fromstartβfreed; fromnewedβfreed; fromderivingβfreedEVP_KDF_CTX_resetβ fromnewedβnewed; fromderivingβnewedEVP_KDF_CTX_get_paramsβ fromnewedβnewed; fromderivingβderivingEVP_KDF_CTX_set_paramsβ fromnewedβnewed; fromderivingβderivingEVP_KDF_CTX_gettable_paramsβ fromnewedβnewed; fromderivingβderivingEVP_KDF_CTX_settable_paramsβ fromnewedβnewed; fromderivingβderiving
πΈ NOTES πΈ
At some point the EVP layer will begin enforcing the transitions described herein. So like, future EDP said βbestie, follow the state transitionsβ β donβt be messy π
π«Ά SEE ALSO π«Ά
π°οΈ HISTORY π°οΈ
The provider KDF interface was introduced in OpenSSL 3.0. Historic moment, honestly β¨
π COPYRIGHT π
Copyright 2021 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>.
This iconic page is from OpenSSL 3.5.0, dated 2026-09-25, and its manual name is LIFE_CYCLE-KDF(7ossl) β slay, bye ππ
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms