KCAPI_MD_DIGESTSIZE(3)

✨ NAME ✨

kcapi_md_digestsize β€” bestie, this one just tells you how big your message digest is πŸ’–


🌸 SYNOPSIS 🌸

uint32_t kcapi_md_digestsize(struct kcapi_handle * handle);

πŸŽ€ ARGUMENTS πŸŽ€

  • handle β€” [in] the cipher handle, aka your little gateway to the crypto vibes πŸ¦‹

πŸ’… DESCRIPTION πŸ’…

okay so here's the tea: this function hands you back the size of the message digest. that's it. that's the whole job. ✨

and like, why do you care? because you can call this before you hit up kcapi_md_final β€” that way you already know exactly how much memory you need to allocate for that call. no guessing, no overflow, no tears. it's giving prepared. it's giving organized. 🫢

what comes back:

  • > 0 β€” slay, that's the block size, use it 🌈
  • 0 β€” on error 😭 something went wrong bestie

πŸ‘‘ AUTHOR πŸ‘‘

Stephan Mueller <smueller@chronox.de>

  • Author. (yes the icon himself πŸ’œ)

the copyright info lives right here in this section, and the footer belongs to the libkcapi Manual, version 1.5.0, dated July 2025 β€” page KCAPI_MD_DIGESTSIZE(3) from the Programming Interface chapter, no cap πŸ’–

and that's the whole page, bestie β€” libkcapi Manual 1.5.0, July 2025, KCAPI_MD_DIGESTSIZE(3), drop by again soon πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from