KCAPI_RNG_SEED(3)
π kcapi_rng_seed(3) β from the libkcapi Programming Interface π
okay bestie, buckle up, we're seeding an RNG and honestly? it's giving main character energy π₯
β¨ NAME β¨
kcapi_rng_seed β seed the RNG π²
πΈ SYNOPSIS πΈ
int kcapi_rng_seed(struct kcapi_handle * handle, uint8_t * seed,
uint32_t seedlen);
π ARGUMENTS π
handleβ [in] the cipher handle, your little backstage pass πseedβ [in] seed data π±seedlenβ [in] size of seed π
π¦ DESCRIPTION π¦
okay so listen, this is not a "call it if you feel like it" situation. This call must be called to initialize the selected RNG. like, mandatory mandatory. no skipping π βοΈ
when the SP800-90A DRBG is the one in play, this call makes the DRBG seed itself from the internal noise sources. it's literally pulling up its own vibes from inside πβ¨
and another thing β when you're using the SP800-90A DRBG, the seed buffer may be NULL. yes, NULL, it's allowed, she's flexible πβοΈ but if it's not NULL, then the DRBG takes your given data and uses it either as a personalization string in the case of the initial seeding, or as additional data for reseeding. either way, your data is getting a job π«Ά
and it returns:
0upon success π- a negative
errno-style error code if an error occurred π
ngl bestie, remember that return value check. zero is the slay, negative is the "we have a problem" π
π AUTHOR π
Stephan Mueller <smueller@chronox.de>
- Author. π
π COPYRIGHT π
that's the whole page, bestie!! β¨
libkcapi Manual 1.5.0 β July 2025 π go forth and seed responsibly, ily ππ¦
π¦ where this page comes from
- fedora 43: libkcapi-devel 1.5.0-6.fc43 Β· BSD-3-Clause OR GPL-2.0-only
- fedora 43: libkcapi-devel 1.5.0-6.fc43 Β· BSD-3-Clause OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms