gnutls_cipher_add_auth(3)
π gnutls_cipher_add_auth(3) π
okay bestie, so this one lives in the gnutls manual section β it's an API function, and yes it's exactly as niche and exactly as powerful as it sounds π«Ά
β¨ NAME β¨
gnutls_cipher_add_auth β API function, aka the little guy who does the "authenticate this please" job π₯
πΈ SYNOPSIS πΈ
#include <gnutls/crypto.h>
int gnutls_cipher_add_auth(gnutls_cipher_hd_t handle, const void *
ptext, size_t ptext_size);
π ARGUMENTS π
gnutls_cipher_hd_t handleβ it's agnutls_cipher_hd_ttype. that's the whole vibe. your handle, your main character πconst void * ptextβ the data to be authenticated. the actual content getting the vibe check πsize_t ptext_sizeβ the length of the data. how many bytes we're talking about, fr fr π
π« DESCRIPTION π«
So here's the tea: this function operates on authenticated encryption with associated data (AEAD) ciphers, and it authenticates the input data. that's it. that's the job. no encryption happening here, just authentication β¨
β οΈ bestie, listen β this function can only be called once, and it has to happen before any encryption operations. once. before. that's the rule and it's not negotiable π
π RETURNS π
Zero, or a negative error code on error. that's it. zero = slay, negative = something went wrong π
β SINCE β
3.0 β she's been around, she's a legacy icon π
π REPORTING BUGS π
Found a bug? don't suffer in silence, tell the people:
Report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org
π¦ 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, legal stuff, but it's giving generous π)
π 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/
and that's the whole page, bestie!! go forth and authenticate responsibly π§π
this was gnutls_cipher_add_auth(3) from gnutls 3.8.13 β sending u love from the man pages, 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