Tspi_Data_Unbind(3)
π Tspi_Data_Unbind(3) π
okay bestie, welcome to the TCG Software Stack Developer's Reference β¨ this is the Library Functions Manual page for Tspi_Data_Unbind(3) and we are gonna get you UNBOUND, literally π¦
πΈ NAME πΈ
Tspi_Data_Unbind β decrypts data that has been bound to a key π
β¨ 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_Data_Unbind(TSS_HENCDATA hEncData, TSS_HKEY hEncKey,
UINT32* pulUnboundDataLength, BYTE** prgbUnboundData);
π DESCRIPTION π
so Tspi_Data_Unbind decrypts the encrypted data blob that got exported from the data object you used over in Tspi_Data_Bind. π«Ά
but listen β before you even think about calling this, that encrypted data blob has got to be imported into the object addressed by Tspi_SetAttribData. no import, no unbind, periodt π
π§ PARAMETERS π§
π hEncData
the handle of the data object that's holding your encrypted data. that's the one. π
π hEncKey
handle to the key object that addresses the private key used to decrypt the data. the key to the whole situation, honestly π
π pulDataLength
receives the length of the data over at the parameter prgbUnboundData. it's giving "how much stuff is coming" π
π prgbUnboundData
receives a pointer to a buffer containing the plaintext data. that's the goods, bestie π
π₯ RETURN CODES π₯
Tspi_Data_Unbind returns TSS_SUCCESS on success β slay β otherwise one of the following values is returned:
TSS_E_INVALID_HANDLEβhEncDataorhEncKeyis not a valid handle. bestie those handles are fake πTSS_E_INTERNAL_ERRORβ an internal SW error has been detected. not our fault, not your fault, it's just vibes πTSS_E_BAD_PARAMETERβ one or more parameters is bad. rude, but okay πTSS_E_INVALID_ENCSCHEMEβ invalid encryption scheme. wrong scheme, wrong energy β οΈTSS_E_ENC_INVALID_LENGTHβ invalid length of data to be encypted. the length said no βTSS_E_ENC_NO_DATAβ no data to encrypt. there's literally nothing here πTSS_E_ENC_INVALID_TYPEβ invalid encryption type. not the type we were looking for π
π CONFORMING TO π
Tspi_Data_Unbind conforms to the Trusted Computing Group Software Specification version 1.1 Golden. iconic behavior, no cap β
π SEE ALSO π
Tspi_Data_Bind(3), Tspi_Data_Unseal(3), Tspi_Data_Seal(3).
and that's the whole page, bestie! this one's from TSS 1.1, dated 2004-05-25 β old but still serving π go unbind something, ily, bye π
π¦ 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