shishi_random_to_key(3)
π shishi_random_to_key(3) π
okay bestie, welcome to the shishi manual, page shishi_random_to_key(3). this is an API function and it's lowkey iconic. sit down, grab a boba, we're doing this. π§β¨
πΈ NAME πΈ
shishi_random_to_key β it's an API function, bestie. that's the whole name. short. sweet. main character. π
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_random_to_key(Shishi * handle, int32_t keytype, const char *
rnd, size_t rndlen, Shishi_key * outkey);
like. look at her. five arguments. slay. π«Ά
π ARGUMENTS π
Shishi * handleβ the shishi handle, and you get it fromshishi_init(). that's the vibe, that's the source, that's where it comes from fr fr.int32_t keytypeβ the cryptographic encryption type. if you wanna know your options, go look atShishi_etype. iykyk. π₯const char * rndβ an input array stuffed with random data. chaotic energy, but make it on purpose.size_t rndlenβ the length of that input array of random data. yes bestie, we measure. we always measure. πShishi_key * outkeyβ an allocated key handle that is gonna contain the new key. she's empty rn, she's about to be β¨fulfilledβ¨.
π¦ DESCRIPTION π¦
so the way this works: it derives a key from random data, for the key type you specified, and then it sets the type and the value in the given key to the computed values.
that's it. that's the whole thing. derive β set type β set value. the key you passed in comes out transformed. no cap. π
β RETURN VALUE β
Returns SHISHI_OK iff successful. and only iff. conditional queen. π
π REPORTING BUGS π
found a bug? not me gatekeeping β go tell someone! 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.
(translation: take it, share it, 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 off, read the whole thing, it's giving thorough. πβ¨
k bye bestie, this was shishi manual, version 1.0.3, and that's the whole page. mwah. ππ¦π
π¦ 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