gnutls_privkey_import_ext(3)
π gnutls_privkey_import_ext(3) π
okay bestie, welcome to the gnutls manual, we're doing the whole thing, sit down, hydrate π«Ά
β¨ NAME β¨
gnutls_privkey_import_ext β literally an API function, that's it, that's the name π
β¨ SYNOPSIS β¨
#include <gnutls/abstract.h>
int gnutls_privkey_import_ext(gnutls_privkey_t pkey,
gnutls_pk_algorithm_t pk, void * userdata, gnutls_privkey_sign_func
sign_func, gnutls_privkey_decrypt_func decrypt_func, unsigned int
flags);
β¨ ARGUMENTS β¨
gnutls_privkey_t pkeyβ the private key in question, your main character πgnutls_pk_algorithm_t pkβ the public key algorithm, so like, what flavor of crypto are we onvoid * userdataβ private data that gets handed off to the callbacks, like a lil care package πgnutls_privkey_sign_func sign_funcβ the callback for signature operations βοΈgnutls_privkey_decrypt_func decrypt_funcβ the callback for decryption operations πunsigned int flagsβ flags for the import, the little toggles, the vibes
β¨ DESCRIPTION β¨
so this function associates the callbacks you gave it with the gnutls_privkey_t type. at least one of the two callbacks must be non-null β that's not a suggestion, that's the rule, no cap π«Ά
heads up bestie: the signing function is supposed to "raw" sign data. like, without any hashing or preprocessing, none, zero, nada. in the case of RSA the DigestInfo will be provided to you, and your signing function is expected to do the PKCS 1 1.5 padding and the exponentiation. it's giving "you're on your own, girlie" but in a fun way π
also go peep gnutls_privkey_import_ext3() if you wanna see the sibling β¨
β¨ RETURNS β¨
on success, GNUTLS_E_SUCCESS (that's 0) is returned π otherwise you get a negative error value, which is the universe's way of saying "not today" π
β¨ SINCE β¨
3.0 β she's been iconic for a minute π
β¨ REPORTING BUGS β¨
found a bug? don't suffer in silence, tell the girlies:
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. slay, and also legally binding π
β¨ 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, you ate that π§ this was gnutls version 3.8.13, page gnutls_privkey_import_ext(3), mwah, go forth and raw-sign responsibly πβ¨πΈ
π¦ 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