gnutls_est_record_overhead_size(3)
β¨ gnutls_est_record_overhead_size β¨
okay bestie, so this is a page from the gnutls manual β the TLS/SSL library that does the whole "keep your secrets safe" thing π β and today we're talking about gnutls_est_record_overhead_size(3), which is literally the "how much extra baggage does every single record carry" calculator. no cap.
πΈ NAME πΈ
gnutls_est_record_overhead_size β it's an API function, periodt. π
π SYNOPSIS π
#include <gnutls/gnutls.h>
size_t gnutls_est_record_overhead_size(gnutls_protocol_t version,
gnutls_cipher_algorithm_t cipher, gnutls_mac_algorithm_t mac,
gnutls_compression_method_t comp, unsigned int flags);
like, that's the whole vibe. five args, one size_t back. slay. β¨
π¦ ARGUMENTS π¦
gnutls_protocol_t versionβ bestie this is agnutls_protocol_tvalue. which protocol era are we in, babe?gnutls_cipher_algorithm_t cipherβ agnutls_cipher_algorithm_tvalue, aka the cipher you're repping.gnutls_mac_algorithm_t macβ agnutls_mac_algorithm_tvalue, the MAC doing its thing.gnutls_compression_method_t compβ agnutls_compression_method_tvalue, and nglβ¦ it's ignored. the function literally does not care. πunsigned int flagsβ must be zero. not "should be", not "we'd prefer", it MUST be. zero. that's the vibe check and you will pass it. π
π DESCRIPTION π
so this function hands you back the set size in bytes β the overhead, the extra β that TLS (or DTLS, hi DTLS ily) adds on a per-record basis. every record pays this tax, bestie, and now you know how much it costs. πΈ
β οΈ heads up though: this function may give you inaccurate values when TLS extensions that modify the record format get negotiated. it's not lying on purpose, it just doesn't know about your extension era. in those cases, a more accurate value can be obtained using gnutls_record_overhead_size() after a completed handshake. so likeβ¦ after the handshake actually finishes, then ask. iykyk. π«Ά
β SINCE β
3.2.2 β she's been around, she's iconic, she's been serving since way back. π
π REPORTING BUGS π
found a bug? don't be shy, report bugs to <bugs@gnutls.org>. home page: https://www.gnutls.org β go say hi. π
π§ COPYRIGHT π§
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. (yes bestie, free is free, just keep the receipts π)
π SEE ALSO π
the full documentation for gnutls is maintained as a Texinfo manual. if the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit
https://www.gnutls.org/manual/
like, go read the whole thing, it's giving main character energy. πβ¨
and that's the whole page, bestie! π this was gnutls_est_record_overhead_size(3) from the gnutls manual, version 3.8.13 β mwah, go forth and calculate your overhead, ily π«Άπ
periodt. π
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms