shishi_verify(3)
π shishi_verify(3) β the shishi manual, bestie edition π
okay so you're in the shishi manual pages, section 3, and today's main character is shishi_verify. she checks whether a checksum actually matches the data, no cap. let's get into it π«Ά
β¨ NAME β¨
shishi_verify β literally an API function, that's her whole job description π
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_verify(Shishi * handle, Shishi_key * key, int keyusage, int
cksumtype, const char * in, size_t inlen, const char * cksum, size_t
cksumlen);
β¨ ARGUMENTS β¨
Shishi * handleβ your shishi handle, the one you got fromshishi_init(). she's the whole vibe, everything runs through her πShishi_key * keyβ the key we're verifying the checksum with. yes queen, bring your own key πint keyusageβ an integer saying what this key is actually used for. context matters bestie β¨int cksumtypeβ which checksum algorithm we're using. pick your fighter πconst char * inβ input array holding the data that got integrity protected. the protected data, periodt π‘οΈsize_t inlenβ how big that input array with the integrity-protected data is. size check πconst char * cksumβ input array with the alleged checksum of the data. alleged!! we're investigating πsize_t cksumlenβ size of that input array with the alleged checksum. π
β¨ DESCRIPTION β¨
so basically: verify the checksum of your data using key, and it might get altered by the supplied key usage. πΈ
important one, bestie: if key usage is 0, no key derivation is used. that's the rule, fr fr.
β¨ RETURN VALUE β¨
Returns SHISHI_OK iff it worked. iff!! so if you don't get SHISHI_OK, something is giving β¨not okβ¨ π
β¨ REPORTING BUGS β¨
found a bug? don't suffer in silence, tell the devs π
- 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. iconic, honestly π
β¨ 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, iykyk πβ¨
and that's the whole page bestie π this was shishi version 1.0.3, page shishi_verify(3), and you absolutely ate this read-through. go verify some checksums, you've got this π¦πΈπ
π¦ 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