shishi_key_from_base64(3)
π shishi_key_from_base64 β the manual page, but make it make sense π
okay bestie, so this is a page from the shishi manual (section 3, the library-functions girlies), and it's all about one very specific lil function. no cap, it's niche but it's iconic. let's go π¦
β¨ NAME β¨
shishi_key_from_base64 β an API function. that's it, that's the name. lowkey self-explanatory, highkey accurate. π
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_key_from_base64(Shishi * handle, int32_t type, const char *
value, Shishi_key ** key);
the way she just sits there at the top of your file... main character energy fr. πΈ
β¨ ARGUMENTS β¨
here's the tea on what you're feeding her:
Shishi * handleβ the Shishi library handle, and you gotta create it withshishi_init(). it's literally the passport she needs to even show up. πβ¨int32_t typeβ the type of key. yes, the type. the vibe of the key, if you will. πconst char * valueβ the input string holding the base64 encoded key value. orNULL. your choice bestie, she accepts both. πShishi_key ** keyβ a pointer to the structure that's gonna hold the newly created key information. she's building you a home and moving the key in. π π
β¨ DESCRIPTION β¨
so what does she do? she creates a brand new Key information structure, and sets the key type and the key value. that's the whole job. obsessed. π₯
β οΈ important, don't skip this: KEY contains a newly allocated structure only if this function is successful. if it flops, no key for you. that's not a vibe, that's a fact. π
β¨ RETURN VALUE β¨
she tells you how it went:
- returns
SHISHI_INVALID_KEYif the base64 encoded key length doesn't match the key type β like, girl, that length is not giving what the type needs. π - returns
SHISHI_OKon success. slay. β
β¨ REPORTING BUGS β¨
found a bug? don't suffer in silence, tell the people:
- 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/
they're literally waiting to hear from you, no gatekeeping here. π«Ά
β¨ 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, this command
info shishi
should give you access to the complete manual. iykyk β go read the whole thing, she's worth it. ππ
and that's the page, bestie!! π this was shishi version 1.0.3, section 3 of the manual, and honestly? she ate. go forth and decode those keys responsibly. 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