KCAPI_MD_UPDATE(3)

πŸ’– KCAPI_MD_UPDATE πŸ’–

okay bestie, welcome to the kcapi_md_update(3) page, from the libkcapi programming interface, and it's giving streaming message digest energy ✨ it's literally the "keep adding more data to my digest" function, and honestly? obsessed.


🌸 NAME 🌸

kcapi_md_update β€” the message digest update function, but make it a stream πŸ’…


✨ SYNOPSIS ✨

ssize_t kcapi_md_update(struct kcapi_handle * handle,
                        const uint8_t * buffer, size_t len);

πŸŽ€ ARGUMENTS πŸŽ€

  • handle β€” [in] the cipher handle, aka the lil passport your digest is travelling with πŸ›‚
  • buffer β€” [in] this one's holding the data to add to the message digest πŸ“₯ like, it's the snack you're feeding your digest
  • len β€” [in] the buffer length, aka how much snack, exactly πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: your input buffer can be at most INT_MAX in size. that's the ceiling, no cap, do not try to exceed it πŸ™ˆ

and the vibe check on the return? it returns 0 upon success, and if something went wrong it hits you with a negative errno-style error code πŸ’€ so like, negative numbers = not slaying, positive-ish zero = slaying, periodt.


πŸ‘‘ AUTHOR πŸ‘‘

Stephan Mueller <smueller@chronox.de> β€” the author, the icon, the main character of this page 🫢


libkcapi Manual 1.5.0 β€” July 2025


and that's the whole page bestie, go forth and stream your digests responsibly πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from