crypto_rng_seedsize(9)
β¨ crypto_rng_seedsize β obtain seed size of RNG π
Okay bestie, so this is from the Kernel API Manual (section 9, crypto_rng_seedsize(9)), and it's literally the glow-up guide for figuring out how much seed a random number generator needs. Buckle up, it's giving crypto realness. π
πΈ SYNOPSIS πΈ
int crypto_rng_seedsize (struct crypto_rng *tfm );
π ARGUMENTS π
tfmβ the cipher handle, aka your backstage pass to the RNG. It's the one you pass in so the function knows which generator we're talking about. No tfm, no tea. π«
π DESCRIPTION π
So the way this works: crypto_rng_seedsize returns the seed size for the random number generator that your cipher handle (tfm) is referencing. Periodt. π
Now, plot twist β this value may be zero if the random number generator doesn't implement or doesn't require a reseeding. Like, some RNGs are just out here living their truth with no reseed era. π
For example (and this is the iconic part), the SP800-90A DRBGs implement an automated reseeding after reaching a pre-defined threshold. So they're out here handling their own business, no cap. π₯
β RETURN β
Returns the seed size for the random number generator. That's the whole vibe check. πβ¨
π¦ SEE ALSO π¦
- Kernel file
./include/crypto/rng.h struct rng_alg(9)crypto_stdrng_get_bytes(9)Random number generator API(9)crypto_alloc_rng(9)crypto_rng_alg(9)crypto_free_rng(9)crypto_rng_generate(9)crypto_rng_get_bytes(9)crypto_rng_reset(9)
π SIGN-OFF π
This masterpiece lives in ./include/crypto, dated October 2026, and it's filed under crypto_rng_seedsize(9). Go off, bestie. π«Άππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms