shishi_dr(3)
β¨ shishi_dr β¨
okay bestie, buckle up, this is shishi_dr(3) from the shishi manual and it's literally the glow-up of "where do random numbers come from" π
π NAME π
shishi_dr β an API function, no cap. that's it, that's the name π
π¦ SYNOPSIS π¦
#include <shishi.h>
int shishi_dr(Shishi * handle, Shishi_key * key, const char *
prfconstant, size_t prfconstantlen, char * derivedrandom, size_t
derivedrandomlen);
look at her. six arguments. main character energy fr fr β¨
πΈ ARGUMENTS πΈ
Shishi * handleβ the shishi handle, allocated byshishi_init(). she's the one holding everything together, the group chat admin of this whole operation πShishi_key * keyβ an input array holding the cryptographic key you're gonna use. this is the secret sauce, guard her with your life πconst char * prfconstantβ an input array with the constant string. the vibes you're deriving from, iykyksize_t prfconstantlenβ the size of that input array with the constant string. gotta tell her how long the vibe is πchar * derivedrandomβ an output array with derived random data. this is where the magic lands, she gets filled in π«Άsize_t derivedrandomlenβ the size of the output array with derived random data. how much magic you want, bestie π«
π DESCRIPTION π
so the whole point: derive "random" data from a key and a constant, thusly:
DR(KEY, PRFCONSTANT) = TRUNCATE(DERIVEDRANDOMLEN, SHISHI_ENCRYPT(KEY, PRFCONSTANT))
periodt. you take the key, you encrypt the constant with it, and then you truncate the result down to DERIVEDRANDOMLEN. that's the derived random data. iconic formula, lowkey elegant, highkey the whole function π₯
note that "random" is in quotes up there, and that's not me being shady β that's the manpage. deterministic derivation, bestie, not a dice roll π²
β RETURN VALUE β
Returns SHISHI_OK iff successful. any other value? not successful. that's the vibe check, fr fr π
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the girlies (the maintainers):
- Report bugs to <bug-shishi@gnu.org>. π§
- GNU Shishi home page:
http://www.gnu.org/software/shishi/π - General help using GNU software:
http://www.gnu.org/gethelp/π
π COPYRIGHT π
Copyright Β© 2002-2022 Simon Josefsson. π«Ά
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. that's it, that's the license, go wild, no royalties, just keep the receipts π§Ύβ¨
π SEE ALSO π
The full documentation for shishi is maintained as a Texinfo manual. If the info and shishi programs are properly installed at your site, the command
info shishi
should give you access to the complete manual. go read it, it's giving β¨encyclopediaβ¨ π
and that's the whole page, bestie!! this was shishi_dr(3) from shishi version 1.0.3 β mwah, drink your water, call your mom, and may all your derivations return SHISHI_OK π
ππ
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms