shishi_hmac_md5(3)
π shishi_hmac_md5 π
okay so bestie, welcome to the shishi_hmac_md5(3) page β yes it's from the shishi manual, section 3, the library-functions section, we love her π
. This is the API function that does the keyed-hash thing and she is lowkey iconic. Let's get into it π«Ά
β¨ NAME β¨
shishi_hmac_md5 β it's an API function, periodt. π
π SYNOPSIS π
#include <shishi.h>
int shishi_hmac_md5(Shishi * handle, const char * key, size_t keylen,
const char * in, size_t inlen, char * outhash[16]);
not me dropping the whole signature up here so you can copy-paste it like the main character you are π
π ARGUMENTS π
Shishi * handleβ the shishi handle, and it's gotta be the one you allocated withshishi_init(). no random handle bestie, she needs to be legit πconst char * keyβ an input character array holding the key you wanna use. this is the secret sauce, guard it with your life πsize_t keylenβ the length of that input character array with the key. yes, you have to tell her how long your key is, she's not psychic πconst char * inβ the input character array of the data you want to hash. the actual snack being processed πsize_t inlenβ the length of the input character array of the data to hash. again, lengths matter, always πchar * outhash[16]β the newly allocated character array with the keyed hash of data. it's 16, she's specific, respect it β¨
π DESCRIPTION π
So what does she do? She computes a keyed checksum of data using HMAC-MD5. that's the whole vibe. π¦
β οΈ heads up bestie: the outhash buffer must be deallocated by the caller. she allocates it, but you have to free it. the way that memory is your responsibility now... not me letting you leak it π
β RETURN VALUE β
Returns SHISHI_OK iff successful. that's the only happy path. anything else and we're in our flop era, sorry π
π₯ REPORTING BUGS π₯
Found a bug? (gasp π) 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/
fr fr, they wanna hear from you, don't be shy π«Ά
π 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.
slay, that's a very generous license bestie, we love a permissive queen πΈ
π 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, go read the whole thing, she's got lore π
and that's the page!! π
signing off from the shishi manual, version 1.0.3, page shishi_hmac_md5(3) β stay keyed, stay hashed, and go free that outhash buffer, bestie πβ¨π¦
π¦ 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