KCAPI_RNG_SEEDSIZE(3)

πŸ’– KCAPI_RNG_SEEDSIZE πŸ’–

okay bestie, welcome to kcapi_rng_seedsize β€” it's a lil function from the libkcapi programming interface (that's the manual section 3 situation, iykyk) and it is SO simple it's almost criminal. Let's get into it. 🫢


✨ SYNOPSIS ✨

uint32_t kcapi_rng_seedsize(struct kcapi_handle * handle);

that's it. that's the whole signature. one argument, one return value, zero drama. πŸ’…


🌸 ARGUMENTS 🌸

  • handle β€” [in] the cipher handle. yeah bestie, you gotta hand it your handle. it's an in parameter, meaning it goes in and (per the docs) doesn't come back out all mangled. you just pass the thing. πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: this function returns the required seed size of the DRNG. that's its whole personality. ✨

what comes back:

  • > 0 β€” slay, this specifies the block size πŸ”₯
  • 0 β€” 😭 error. something went wrong. not the vibe.
no cap, 0 is the sad path here β€” if you see a zero come back, that's not a seed size, that's a problem. don't go using it like it's a valid number. πŸ™ˆ

πŸ‘‘ AUTHOR πŸ‘‘

  • Stephan Mueller <smueller@chronox.de> β€” Author. (iconic behavior, honestly 🫢)

this page lives under the libkcapi Manual umbrella, and that's the whole copyright sitch as documented. πŸ“œ


🌈 SEE ALSO 🌈

okay so the original page doesn't actually list any SEE ALSO entries β€” nothing to send you off to. so instead: go forth, call the function, and check for that zero. that's the assignment. periodt. πŸ’–


and that's a wrap, bestie! this was the libkcapi Manual, version 1.5.0, dated July 2025 β€” aka the KCAPI_RNG_SEEDSIZE era. tysm for reading, mwah πŸŽ€πŸ’…βœ¨

πŸ“¦ where this page comes from