shishi_key_from_random(3)
β¨ shishi_key_from_random β¨
okay bestie, welcome to shishi_key_from_random(3) β it's part of the shishi manual, and it is literally the glow-up station for turning random bytes into a real, usable key. π
π NAME π
shishi_key_from_random β it's an API function, bestie. that's the whole job description. π
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_key_from_random(Shishi * handle, int32_t type, const char *
rnd, size_t rndlen, Shishi_key ** outkey);
look at her. five arguments. no notes. β¨
π¦ ARGUMENTS π¦
Shishi * handleβ the Shishi library handle, and you gotta create it withshishi_init()first, no skipping steps bestie πint32_t typeβ the type of key. that's it, that's the vibe. πconst char * rndβ random data. the chaos source. the β¨materialβ¨.size_t rndlenβ how long that random data is. length. that's the one.Shishi_key ** outkeyβ a pointer to the structure that's gonna hold the newly created key information. she's the output, she's the main character, she gets the goods π«Ά
π DESCRIPTION π
so what actually happens here? you create a new Key information structure, and then you set the key type and the key value using shishi_random_to_key(). that's the whole transformation arc, iconic behavior honestly.
β οΈ important, no cap: KEY contains a newly allocated structure only if this function is successful. so likeβ¦ don't go using it if it flopped. check the return value first, babe. π
β RETURN VALUE β
Returns SHISHI_OK iff successful. and if it's not SHISHI_OK? that's not a slay, that's a red flag, handle accordingly. π©
π REPORTING BUGS π
found a bug? don't be shy, report it 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. (yes bestie, keep the receipts, always π)
π 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. iykyk πβ¨
and that's the page, bestie!! this was the shishi_key_from_random(3) manpage, hailing from version 1.0.3 of shishi. go forth and make keys, you absolute legend π
πΈπ¦
π¦ 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