KCAPI_AEAD_SETTAGLEN(3)

πŸ’– KCAPI_AEAD_SETTAGLEN(3) πŸ’–

okay bestie, welcome to kcapi_aead_settaglen β€” yes that's the whole name, no we're not shortening it, it's iconic ✨ (it lives in section 3 of the manual, for the record πŸŽ€)


🌸 NAME 🌸

kcapi_aead_settaglen β€” set the authentication tag size, periodt πŸ’…


✨ SYNOPSIS ✨

int kcapi_aead_settaglen(struct kcapi_handle * handle, uint32_t taglen);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • handle β€” [in] the cipher handle, aka your main character 🫢
  • taglen β€” [in] the length of the authentication tag, like how many bytes of tag we're vibing with πŸ”₯

πŸ‘‘ DESCRIPTION πŸ‘‘

So basically, this call sets the authentication tag size you need for your encryption operation. The tag itself gets created during the encryption operation, and it shows up with the exact size you handed over in this call. that's it, that's the whole lore 🌈

And the return situation, no cap:

return 0 upon success; a negative errno-style error code if an error occurred πŸ’€


πŸ’œ AUTHOR πŸ’œ

Stephan Mueller <smueller@chronox.de> β€” Author. an actual legend, we stan πŸ™ˆ



and that's the tea, bestie 🧚✨ this was the libkcapi Manual, version 1.5.0, dated July 2025 β€” go forth and set those tag lengths, you absolute icon πŸ‘‘πŸ’–

πŸ“¦ where this page comes from