gnutls_record_...e_length_hiding(3)
β¨ NAME β¨
okay bestie, this is a page from the gnutls manual (you know, the TLS library? the one holding your whole internet together π
). and the function we're stanning today is gnutls_record_can_use_length_hiding β which is, lowkey, just an API function. that's it, that's the name. π
π SYNOPSIS π
#include <gnutls/gnutls.h>
unsigned gnutls_record_can_use_length_hiding(gnutls_session_t session);
that's the whole vibe. one include, one function, returns an unsigned. no cap. β¨
πΈ ARGUMENTS πΈ
gnutls_session_t sessionβ bestie it's literally just agnutls_session_ttype. that's the entire tea. π«
π DESCRIPTION π
okay so here's the situation. if your session supports length-hiding padding, then you can go ahead and call gnutls_record_send_range() to send a message whose length is hidden inside the given range. sneaky. mysterious. iconic. π
but if the session does not support length hiding padding, no worries, you've got options:
- you can use the standard
gnutls_record_send()function, or - you can use
gnutls_record_send_range()β just make sure the range you pass is the same as the length of the message you're trying to send. like, exactly the same. not approximately. the same. π―
β RETURNS β
true(1) if the current session supports length-hiding padding πfalse(0) if the current session does not π
so basically a vibe check for your session. π
π REPORTING BUGS π
found a bug? (rude of it tbh.) report it to <bugs@gnutls.org>.
home page is right here: https://www.gnutls.org β go be nosy, it's fine. π¦
π 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. slay, that's genuinely generous of them π
π₯ 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, then bestie, just go visit:
https://www.gnutls.org/manual/
and that's the whole page, angel π«Ά this was gnutls version 3.8.13, from the gnutls_record_...e_length_hiding(3) corner of the manual. go forth and hide your lengths (or don't, that's also valid). mwah πβ¨
π¦ 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