gnutls_privkey_decrypt_data(3)
π gnutls_privkey_decrypt_data(3) π
okay bestie, sit down, hydrate, and let me tell you about a little function from the gnutls manual that is genuinely so useful. no cap. π«Ά
β¨ NAME β¨
gnutls_privkey_decrypt_data β it's an API function, and it does exactly what the name says it does, which honestly? iconic behaviour. π
πΈ SYNOPSIS πΈ
#include <gnutls/abstract.h>
int gnutls_privkey_decrypt_data(gnutls_privkey_t key, unsigned int
flags, const gnutls_datum_t * ciphertext, gnutls_datum_t * plaintext);
like. look at her. she's perfect. π
π¦ ARGUMENTS π¦
gnutls_privkey_t keyβ bestie this is the key, it holds the key, the key lives here, this is the key's whole thing πunsigned int flagsβ zero for now. that's it. that's the whole vibe. zero. π«const gnutls_datum_t * ciphertextβ the data that needs decrypting, she's holding it, she's the locked box πgnutls_datum_t * plaintextβ this is where the decrypted data ends up, and heads up: it gets allocated withgnutls_malloc(). so like. that's yours to free later, don't forget, i'm serious π
π DESCRIPTION π
so basically, this function decrypts the given data using the algorithm that your private key supports. that's the whole thing. your key knows what it's doing, it just handles it. main character energy, honestly. π
β RETURNS β
if everything goes off without a hitch, you get GNUTLS_E_SUCCESS (which is 0). and if not? negative error value, babes. negative. π
π SINCE π
2.12.0 β she's been around for a minute, she's got history, she's a legacy icon π
π REPORTING BUGS π
found a bug? not me being the one to tell you, but like, tell them:
- 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.
like, copy it, share it, remix it, just keep the receipts. periodt. π
π§ 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 tea, bestie π this was gnutls 3.8.13, page gnutls_privkey_decrypt_data(3), served fresh with love. go decrypt something. slay. πβ¨πΈ
π¦ 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