KCAPI_MD_FINAL(3)

πŸ’– KCAPI_MD_FINAL(3) πŸ’–

okay so bestie, welcome to the page for kcapi_md_final β€” it lives in the Programming Interface part of the manual, and it's literally the glow-up moment for your message digest. πŸ¦‹


✨ NAME ✨

kcapi_md_final β€” the message digest finalization function (stream version, iykyk). πŸŽ€


✨ SYNOPSIS ✨

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

✨ ARGUMENTS ✨

  • handle β€” [in] the cipher handle, your main character. πŸ‘‘
  • buffer β€” [out] gets filled with the message digest. it's giving delivery. πŸ’…
  • len β€” [in] how long that buffer is, fr fr.

✨ DESCRIPTION ✨

so on success it returns the size of the message digest. slay. 🌟

but if things go sideways:

  • -EIO β€” the data cannot be obtained. 😭
  • -ENOMEM β€” the buffer is too small for the complete message digest, and heads up: the buffer is filled with the truncated message digest. not the whole vibe, just a piece of it. πŸ’€

✨ AUTHOR ✨

Stephan Mueller <smueller@chronox.de> β€” Author. 🫢


that's the whole page, bestie. 🌈


libkcapi Manual version 1.5.0, dated July 2025 β€” mwah, sending you off with a kiss and a KCAPI_MD_FINAL(3) πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from