shishi_authent..._add_cksum_type(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ shishi_authenticator_add_cksum_type ✨

okay bestie, sit down, we're doing a shishi manpage and it's from the shishi manual, version 1.0.3. it's a lil API function and honestly? it's giving "small but mighty". πŸ’–


🌸 NAME 🌸

shishi_authenticator_add_cksum_type β€” literally an API function, that's the whole name, no notes πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <shishi.h>

int shishi_authenticator_add_cksum_type(Shishi * handle, Shishi_asn1
authenticator, Shishi_key * key, int keyusage, int cksumtype, char *
data, size_t datalen);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • Shishi * handle β€” the shishi handle, the one you got from shishi_init(). your main character, fr fr.
  • Shishi_asn1 authenticator β€” the authenticator, as allocated by shishi_authenticator(). yes queen, that exact one.
  • Shishi_key * key β€” the key you're using for encryption. πŸ”
  • int keyusage β€” the cryptographic key usage value that gets used in the encryption. yes it matters, no you can't skip it.
  • int cksumtype β€” the checksum type to calculate the checksum with. (the original says "checksum to type to calculate checksum" and honestly? we love a messy icon. it means: which checksum type, bestie.)
  • char * data β€” the input array holding the data you want the checksum calculated on.
  • size_t datalen β€” the size of that input array with the data you want the checksum calculated on. the vibes must be sized correctly. πŸ“

πŸ’œ DESCRIPTION πŸ’œ

so basically: you calculate a checksum for the data, and then you store it in the authenticator. that's the whole plot. no cap. ✨


🌈 RETURN VALUE 🌈

Returns SHISHI_OK iff successful. that's it. SHISHI_OK = slay, anything else = we do not talk about it 😭


πŸ”₯ REPORTING BUGS πŸ”₯

found a bug? do NOT suffer in silence, bestie, report it to <bug-shishi@gnu.org>.


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 behaviour, 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, this command:

info shishi

should give you access to the complete manual. iykyk. 🧚


not me ending this whole thing with the full lore drop: this page is from shishi, version 1.0.3, and it lives under the manual section for shishi_authent..._add_cksum_type(3). periodt. πŸ’…πŸŒΈ