crypto_krb5_how_much_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is crypto_krb5_how_much_buffer(9) from the Kernel API Manual, and bestie it does exactly one iconic thing: work out how much buffer is required for an amount of data πŸ’…βœ¨


🌸 SYNOPSIS 🌸

size_t crypto_krb5_how_much_buffer (const struct krb5_enctype *krb5 ,
enum krb5_crypto_mode mode , size_t data_size , size_t *_offset );

πŸŽ€ ARGUMENTS πŸŽ€

  • krb5 β€” the encoding to use ✨
  • mode β€” the mode in which to operate (checksum/encrypt) 🫢
  • data_size β€” how much data we want to allow for πŸ’–
  • _offset β€” where to place the offset into the buffer πŸŽ€

πŸ’… DESCRIPTION πŸ’…

okay so this function calculates how much buffer space is required to wrap a given amount of data. it allows for a confounder, padding and checksum as appropriate β€” no cap, that’s the whole vibe check πŸ¦‹

the amount of buffer required is returned, and the offset into the buffer at which the data will start is placed in *_offset. literally that’s it, and it ate πŸ”₯


πŸ¦‹ SEE ALSO πŸ¦‹


source/version: ./crypto/krb5 🫢 date: October 2026 ✨ stay hydrated bestie, this page is done πŸ’œπŸ§š

πŸ“¦ where this page comes from