Tspi_Key_GetPubKey(3)
β¨ Tspi_Key_GetPubKey(3) β¨
okay bestie, sit down, we're doing TSS today π This one lives in the TCG Software Stack Developer's Reference (it's a section 3 library functions manual page, iykyk) and it's genuinely so useful β it's the "hey, show me the public half of this key" girlie.
πΈ NAME πΈ
Tspi_Key_GetPubKey β get the public key of an object π
π¦ SYNOPSIS π¦
#include <tss/platform.h>
#include <tss/tcpa_defines.h>
#include <tss/tcpa_typedef.h>
#include <tss/tcpa_struct.h>
#include <tss/tss_typedef.h>
#include <tss/tss_structs.h>
#include <tss/tspi.h>
TSS_RESULT Tspi_Key_GetPubKey(TSS_HKEY hKey, UINT32* pulPubKeyLength, BYTE** prgbPubKey);
like yes you gotta include all seven headers, that's just the vibe, don't fight it π
π DESCRIPTION π
Tspi_Key_GetPubKey gets the public portion of a given key object. that's it, that's the whole job, and she does it flawlessly β¨
π PARAMETERS π
π hKey
hKey</purl> is the handle of the key object to unload. (yes bestie, the manpage says "unload" right there β we report, we don't editorialize π)
π pulPubKeyLength
pulPubKeyLength receives the length in bytes of the prgbPubKey parameter. it's giving "how big is the thing", and honestly? necessary.
π prgbPubKey
prgbPubKey receives a pointer to the memory block containing the public key blob retrieved for the key object referenced by hKey. so like, she hands you the goods π«Ά
π RETURN CODES π
Tspi_Key_GetPubKey returns TSS_SUCCESS on success (slay π₯), otherwise one of the following values is returned:
TSS_E_INVALID_HANDLEβhKeyis not a valid handle. bestie that handle is not a handle πTSS_E_INTERNAL_ERRORβ an internal SW error has been detected. not our fault, she's just going through it πTSS_E_BAD_PARAMETERβ one or more parameters is bad. one of the girlies is not okay π
π CONFORMING TO π
Tspi_Key_GetPubKey conforms to the Trusted Computing Group Software Specification version 1.1 Golden β¨ iconic, certified, periodt.
π SEE ALSO π
the whole key-handling friend group, go say hi π¦
and that's the page!! this is TSS 1.1, dated 2004-05-25, and she's still serving main character energy in Tspi_Key_GetPubKey(3) π
β¨ mwah, go get your public keys bestie ππ
π¦ where this page comes from
- debian bookworm: libtspi-dev 0.3.15-0.3 Β· BSD-3-Clause
- debian trixie: libtspi-dev 0.3.15-0.4 Β· BSD-3-Clause
- epel 10: trousers-devel 0.3.15-11.el10_0 Β· BSD
- epel 9: trousers-devel 0.3.15-5.el9 Β· BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: trousers 0.3.15
- nixpkgs unstable: netbsd-source 11.0
- nixpkgs unstable: trousers 0.3.15
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- ubuntu jammy: libtspi-dev 0.3.15-0.2 Β· BSD-3-Clause
- ubuntu noble: libtspi-dev 0.3.15-0.3build2 Β· BSD-3-Clause
- ubuntu questing: libtspi-dev 0.3.15-0.4
- ubuntu resolute: libtspi-dev 0.3.15-1 Β· BSD-3-Clause
- ubuntu stonking: libtspi-dev 0.3.15-1ubuntu2 Β· BSD-3-Clause
- Copyright (C) 2004 International Business Machines Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms