gnutls_cipher_tag(3)
β¨ gnutls_cipher_tag(3) β¨
okay bestie, welcome to the gnutls manual π this one lives in section 3 of the manual pages (that's the "library functions" section, iykyk) and it's all about grabbing the authentication tag off an AEAD cipher. let's get into it π«Ά
πΈ NAME πΈ
gnutls_cipher_tag β literally just an API function, that's the whole name, no notes π
π¦ SYNOPSIS π¦
#include <gnutls/crypto.h>
int gnutls_cipher_tag(gnutls_cipher_hd_t handle, void * tag, size_t
tag_size);
like, that's the whole vibe. three args, one int coming back at you β¨
π ARGUMENTS π
gnutls_cipher_hd_t handleβ bestie this is agnutls_cipher_hd_ttype. your cipher handle. the main character of this function fr fr πvoid * tagβ this lil guy is gonna hold the tag. it's the destination. the tag goes in here πsize_t tag_sizeβ the length of the tag you want returned. how many bytes of tag you're asking for π«
π DESCRIPTION π
so here's the tea β this function operates on authenticated encryption with associated data (AEAD) ciphers β you know, the fancy ones that do confidentiality and integrity β and it will return the output tag.
that's it. that's the function. it hands you the tag. no cap π§
ngl if you're not using an AEAD cipher, this is not your moment β the description is very clear that this is AEAD territory only π
π RETURNS π
Zero on success, or a negative error code on error. so like, check your return value, bestie, please π
β SINCE β
3.0 β she's been iconic since 3.0, we love a long-running queen π
π REPORTING BUGS π
found a bug? don't be shy, report it 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. so like, copy away, 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, the whole manual is right there, go read it, it's giving β¨ educated β¨ π
and that's the page bestie!! this one's from gnutls version 3.8.13, gnutls_cipher_tag(3), section 3, library functions, 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