TSPI_KEY_CONVERTMIGRATIONBLOB(3)
π Tspi_Key_ConvertMigrationBlob β bestie edition π
okay so welcome to the TCG Software Stack Developer's Reference β¨ this one lives in section 3 of the library functions manual, and it's genuinely one of the cutest little glue functions in the whole TSS lineup. no cap.
πΈ NAME πΈ
Tspi_Key_ConvertMigrationBlob β create a wrapped key from a migration blob π
β¨ 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_ConvertMigrationBlob(TSS_HKEY hKeyToMigrate, TSS_HKEY hParentKey,
UINT32 ulRandomLength, BYTE* rgbRandom,
UINT32 ulMigrationBlobLength, BYTE* rgbMigrationBlob);
like yes she's a long signature but she's worth it π
π¦ DESCRIPTION π¦
okay so here's the tea β Tspi_Key_ConvertMigrationBlob takes the migration blob that was built by Tspi_Key_CreateMigrationBlob using the migration scheme TSS_MS_MIGRATE, and turns it into a normal wrapped key. it's giving glow-up. it's giving transformation arc. π
the resulting normal wrapped key blob gets stored in the instance associated with hKeyToMigrate, and you can pull it back out of that instance later using Tspi_GetAttribData. literally so convenient, i'm obsessed π«Ά
π PARAMETERS π
hKeyToMigrate
the handle of the key object you wanna convert. main character of this whole operation tbh π
hParentKey
handle to the parent key related to the key addressed by hKeyToMigrate. yes bestie, family matters here.
ulRandomLength
the length of the random data you're providing at the parameter rgbRandom.
rgbRandom
random data as returned together with the migration blob by the method Tspi_Key_CreateMigrationBlob. don't lose this, she's important π₯Ί
ulMigrationBlobLength
the length of the migration blob data provided at the parameter rgbMigrationBlob.
rgbMigrationBlob
migration blob data as returned by a previously called method Tspi_Key_CreateMigrationBlob. yep, you gotta have called that one first β this is the sequel, not a standalone π
π RETURN CODES π
Tspi_Key_ConvertMigrationBlob returns TSS_SUCCESS on success, otherwise one of these lil guys shows up:
TSS_E_INVALID_HANDLEβhKeyToMigrateorhParentKeyis not a valid handle. not me passing a fake handle πTSS_E_INTERNAL_ERRORβ an internal SW error has been detected. something broke deep inside and honestly, same.TSS_E_BAD_PARAMETERβ one or more parameters is bad. vibe check failed fr fr π
π CONFORMING TO π
Tspi_Key_ConvertMigrationBlob conforms to the Trusted Computing Group Software Specification version 1.1 Golden. periodt. π
β¨
π₯ SEE ALSO π₯
go read those next, iykyk π§
and that's the whole page bestie!! this one's from TSS 1.1, dated 2004-05-25 β vintage but iconic, like a limited edition π thanks for reading, mwah π
π¦ 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