shishi_authenticator_add_cksum(3)
π shishi_authenticator_add_cksum β the girlies' guide to slapping a checksum on your authenticator π
okay so bestie, you're in the shishi manual, section 3, and this little function is the one that goes checksum goes brrr and tucks it right into your authenticator. no cap. let's get into it π«Ά
β¨ NAME β¨
shishi_authenticator_add_cksum β API function
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_authenticator_add_cksum(Shishi * handle, Shishi_asn1
authenticator, Shishi_key * key, int keyusage, char * data, size_t
datalen);
like, it takes a whole little entourage of args and returns an int. iconic behavior tbh π
π ARGUMENTS π
Shishi * handleβ your shishi handle, the one you already got fromshishi_init(). she's the main character, everything runs through her.Shishi_asn1 authenticatorβ the authenticator, as allocated byshishi_authenticator(). this is the baddie we're decorating β¨Shishi_key * keyβ the key to use for encryption. (the original says "key to to use for encryption" β yes, to to, we're keeping that typo fr fr, it's part of the lore π«Ά)int keyusageβ the cryptographic key usage value to use in encryption. very "know your role" energy.char * dataβ input array with the data you wanna calculate a checksum on.size_t datalenβ the size of that input array with the data you wanna calculate a checksum on. her twin, basically π―
π¦ DESCRIPTION π¦
Calculate checksum for data and store it in the authenticator.
that's it. that's the whole vibe. you bring the data, she does the math, the authenticator gets the receipts π
β RETURN VALUE β
Returns SHISHI_OK iff successful.
and bestie, notice that "iff" β that's if and only if. so if you see SHISHI_OK, you ate. anything else and we need to have a conversation π
π REPORTING BUGS π
found a bug? not cute. 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.
(translation: go off, share it, remix it, just keep the receipts. 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.
like, that's the whole encyclopedia, not just this one page. go read it, you'll be obsessed πβ¨
and that's the tea, bestie β this page came straight out of the shishi 1.0.3 manual, section 3, under shishi_authenticator_add_cksum(3). now go checksum something and slay πβ¨π¦
π¦ 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