gnutls_aead_cipher_encryptv2(3)
π gnutls_aead_cipher_encryptv2 π
okay bestie, welcome to the gnutls manual, this page is all about gnutls_aead_cipher_encryptv2(3) β yes the whole manual name is right there in the title, we're not hiding it, it's giving main character energy fr fr πΈ
β¨ NAME β¨
gnutls_aead_cipher_encryptv2 β an API function, and no that's not a typo, that's literally what it is π«Ά
π SYNOPSIS π
#include <gnutls/crypto.h>
int gnutls_aead_cipher_encryptv2(gnutls_aead_cipher_hd_t handle, const
void * nonce, size_t nonce_len, const giovec_t * auth_iov, int
auth_iovcnt, const giovec_t * iov, int iovcnt, void * tag, size_t *
tag_size);
like look at all those params, she's got a lot going on but she handles it π
π ARGUMENTS π
gnutls_aead_cipher_hd_t handleβ bestie this is agnutls_aead_cipher_hd_ttype, that's the whole vibe.const void * nonceβ the nonce you wanna set.size_t nonce_lenβ the length of that nonce. yes we need it, don't skip it πconst giovec_t * auth_iovβ additional data that's gonna get authenticated.int auth_iovcntβ how many buffers are chilling inauth_iov.const giovec_t * iovβ the data that's getting encrypted β¨int iovcntβ how many buffers are iniov.void * tagβ the authentication tag.size_t * tag_sizeβ the size of the tag you wanna use (and if you pass zero, you get the default, iconic).
π« DESCRIPTION π«
so this one is similar to gnutls_aead_cipher_encrypt(), except β and this is the whole point β it does in-place encryption on the data buffers you hand it. like, it's encrypting right there in the buffers you gave it, no cap π₯
β RETURNS β
zero, or a negative error code if things went wrong π periodt.
π¦ SINCE π¦
3.6.10 β she's been around, she's established π
π REPORTING BUGS π
found a bug? not cute. 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.
(translation: you can copy and share this file, modified or not, in any medium, no royalty needed β just keep the copyright notice and this notice with it π)
πΈ 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, go visit:
https://www.gnutls.org/manual/
and that's the whole page bestie, you ate that π«Ά this was gnutls version 3.8.13, brought to you by the gnutls manual, 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