gnutls_pubkey_import_tpm_raw(3)
π gnutls_pubkey_import_tpm_raw(3) π
okay bestie, welcome to the gnutls manual, page gnutls_pubkey_import_tpm_raw. this is the part where we pull a public key out of a TPM key blob and honestly? it's giving β¨ key extraction β¨. let's get into it π«Ά
β¨ NAME β¨
gnutls_pubkey_import_tpm_raw β it's an API function, and its whole job is exactly what the name says. no cap. π
πΈ SYNOPSIS πΈ
#include <gnutls/abstract.h>
int gnutls_pubkey_import_tpm_raw(gnutls_pubkey_t pkey, const
gnutls_datum_t * fdata, gnutls_tpmkey_fmt_t format, const char *
srk_password, unsigned int flags);
like, five arguments, one int returned, classic. don't forget that #include or it's gonna be a whole thing π
π ARGUMENTS π
gnutls_pubkey_t pkeyβ the public key. this is your main character right here, the one getting filled in πconst gnutls_datum_t * fdataβ the TPM key that we're importing. the raw material, literally π§gnutls_tpmkey_fmt_t formatβ the format of the private key. yes bestie, the private key β that's what the original says, we don't question it, we just pass it πconst char * srk_passwordβ the password for the SRK key. it's optional, so if you don't need it,NULLit and move on π¦unsigned int flagsβ one of theGNUTLS_PUBKEY_*flags. one. not a whole little collection, one π
π« DESCRIPTION π«
so the way that this works: this function will import the public key from the provided TPM key structure. that's the vibe. that's the whole assignment. π
and about passwords β with respect to passwords, the same as in gnutls_pubkey_import_tpm_url() apply. so if you've already read that page, you already know, iykyk. if not, go read it, bestie, i'm not about to guess at it for you π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value. so like, check your return value, okay? zero is the slay outcome, negative means we're crying π
π¦ SINCE π¦
3.1.0 β this one's been around since way before you discovered it, it's an elder icon π
π’ REPORTING BUGS π’
found a bug? report it to <bugs@gnutls.org>. do not suffer in silence, that's not the energy πΈ
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. so like, go off, just keep the receipt π§Ύπ
π 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 now know how to gnutls_pubkey_import_tpm_raw and honestly that's a flex π«Ά
this was brought to you by the gnutls manual, version 3.8.13 β signed, sealed, delivered, slayed. 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