shishi_key_from_name(3)
β¨ shishi_key_from_name β¨
okay bestie, pull up a chair because we're doing cryptography today π
this is the page for shishi_key_from_name(3) from the shishi manual, and yes it's literally the function that turns a name + password into a key. main character energy fr fr π
πΈ NAME πΈ
shishi_key_from_name β API function
π SYNOPSIS π
#include <shishi.h>
int shishi_key_from_name(Shishi * handle, int32_t type, const char *
name, const char * password, size_t passwordlen, const char * parameter,
Shishi_key ** outkey);
π¦ ARGUMENTS π¦
Shishi * handleβ the Shishi library handle, the one you made withshishi_init(). it's giving β¨contextβ¨int32_t typeβ the type of key. which flavor we're making today πconst char * nameβ the principal name of the user. who is this key for, bestieconst char * passwordβ input array containing the password. the secret sauce πsize_t passwordlenβ length of that input array containing the password. yes we need it, don't skip itconst char * parameterβ input array with opaque encryption type specific information. opaque!! meaning don't peek, it's type-specific, just pass it along πShishi_key ** outkeyβ pointer to the structure that will hold the newly created key information. this is where the goods land π
π DESCRIPTION π
so what does it actually do. it creates a brand new Key information structure, and derives the key from the principal name and the password using shishi_key_from_name(). (yes, the function describes itself, iconic behaviour, we love a self-referential moment π)
and the salt? the salt is derived from the principal name by concatenating the decoded realm and the principal. that's the whole vibe. no cap. π§β¨
π₯ RETURN VALUE π₯
Returns SHISHI_OK iff successful. that's it, that's the whole check π if it's SHISHI_OK, you ate. if it's not... well.
π REPORTING BUGS π
found a bug? don't suffer in silence bestie, 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. periodt π
π 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 π
shishi version 1.0.3, and this whole page is shishi_key_from_name(3) β ok bye bestie, go derive some keys responsibly π«Άβ¨π
π¦ 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