SHISHI_AUTHENTICATOR_ADD_RANDOM_SUBKEY(3)
π shishi_authenticator_add_random_subkey β from the shishi manual, section 3 π
okay bestie, pull up a chair, we're getting into the shishi library today and honestly? it's giving cryptographic glow-up β¨
πΈ NAME πΈ
shishi_authenticator_add_random_subkey β lowkey the API function that makes a random subkey appear out of thin air and tucks it into your authenticator π
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_authenticator_add_random_subkey(Shishi * handle, Shishi_asn1
authenticator);
like yes, that's the whole thing, two args, one int coming back at you π«Ά
π¦ ARGUMENTS π¦
Shishi * handleβ the shishi handle, and no you can't just make one up, it's gotta be allocated byshishi_init(). that's the vibe check it has to pass πShishi_asn1 authenticatorβ the authenticator you're working with, and it must be allocated byshishi_authenticator(). no random structs, bestie π
π DESCRIPTION π
so here's the tea β β this function generates a random subkey, using the default encryption type from configuration, and then it stores that subkey right inside the authenticator. periodt. that's the whole job. it's iconic, it's simple, it slays π₯
β RETURN VALUE β
returns SHISHI_OK iff successful. iykyk β anything else means it did not go off π
π REPORTING BUGS π
found a bug? not the main character moment anyone wants, but okay, 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. fr fr, 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, bestie, it's giving lore ππ
and that's the page!! this is from shishi 1.0.3, section 3 of the shishi manual β mwah, bye, drink water and read your man pages π πΈ
π¦ 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