Fapi_ExportKey(3)
π Fapi_ExportKey(3) π
okay so this is the Fapi_ExportKey(3) page from the Library Functions Manual, and bestie, it's literally all about Fapi_ExportKey. no cap. π
β¨ NAME β¨
Fapi_ExportKey β yep, the name is Fapi_ExportKey. iconic. π
πΈ SYNOPSIS πΈ
π«Ά Functions π«Ά
TSS2_RC Fapi_ExportKey (FAPI_CONTEXT *context, char const
*pathOfKeyToDuplicate, char const *pathToPublicKeyOfNewParent, char
**exportedData)
TSS2_RC Fapi_ExportKey_Async (FAPI_CONTEXT *context, char const
*pathOfKeyToDuplicate, char const *pathToPublicKeyOfNewParent)
TSS2_RC Fapi_ExportKey_Finish (FAPI_CONTEXT *context, char
**exportedData)
π¦ Detailed Description π¦
These are the FAPI functions that invoke ExportKey β either as a one-call situation or in an asynchronous manner. slay. β¨
π Function Documentation π
π TSS2_RC Fapi_ExportKey β the one-call cutie π
TSS2_RC Fapi_ExportKey (FAPI_CONTEXT * context, char const *
pathOfKeyToDuplicate, char const * pathToPublicKeyOfNewParent, char **
exportedData)
One-Call function for Fapi_ExportKey. okay so you give it a key, and β if the key is a storage key β it will duplicate the key and package up the duplicated key plus all the keys below it into a file that's ready to move to a new TPM. that's the whole vibe. π«Ά
πΈ Parameters πΈ
contextβ TheFAPI_CONTEXT.pathOfKeyToDuplicateβ The path to the root of the subtree to export.pathToPublicKeyOfNewParentβ The path to the public key of the new parent. May beNULL.exportedDataβ The exported subtree.
π Return values π
TSS2_RC_SUCCESSβ if the function call was a success. πTSS2_FAPI_RC_BAD_REFERENCEβ ifcontext,pathOfKeyToDuplicateorexportedDataisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_KEY_NOT_FOUNDβ ifpathOfKeyToDuplicateorpathToPublicKeyOfNewParentdoes not map to a . FAPI object.TSS2_FAPI_RC_BAD_KEYβ if the key atpathToPublicKeyOfNewParentis not suitable for the requeste operation.TSS2_FAPI_RC_KEY_NOT_DUPLICABLEβ if the key is not a duplicable key.TSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORβ if the data cannot be saved.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_NO_TPMβ if FAPI was initialized in no-TPM-mode via its config file.TSS2_FAPI_RC_PATH_NOT_FOUNDβ if a FAPI object path was not found during authorization.TSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the function.TSS2_FAPI_RC_BAD_PATHβ if a path is used in inappropriate context or contains illegal characters.TSS2_FAPI_RC_TRY_AGAINβ if an I/O operation is not finished yet and this function needs to be called again.TSS2_FAPI_RC_GENERAL_FAILUREβ if an internal error occurred.TSS2_FAPI_RC_AUTHORIZATION_UNKNOWNβ if a required authorization callback is not set.TSS2_FAPI_RC_AUTHORIZATION_FAILEDβ if the authorization attempt fails.TSS2_FAPI_RC_POLICY_UNKNOWNβ if policy search for a certain policy digest was not successful.TSS2_ESYS_RC_*β possible error codes of ESAPI.TSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned.
π¦ TSS2_RC Fapi_ExportKey_Async β the async bestie π¦
TSS2_RC Fapi_ExportKey_Async (FAPI_CONTEXT * context, char const *
pathOfKeyToDuplicate, char const * pathToPublicKeyOfNewParent)
Asynchronous function for Fapi_ExportKey. same energy as above: given a key, it will β if the key is a storage key β duplicate the key and package up the duplicated key and all keys below it into a file ready to move to a new TPM. then you call Fapi_ExportKey_Finish to finish the execution of this command. periodt. β¨
πΈ Parameters πΈ
contextβ TheFAPI_CONTEXT.pathOfKeyToDuplicateβ The path to the root of the subtree to export.pathToPublicKeyOfNewParentβ The path to the public key of the new parent.
π Return values π
TSS2_RC_SUCCESSβ if the function call was a success. πTSS2_FAPI_RC_BAD_REFERENCEβ ifcontextorpathOfKeyToDuplicateisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_KEY_NOT_FOUNDβ ifpathOfKeyToDuplicateorpathToPublicKeyOfNewParentdoes not map to a . FAPI object.TSS2_FAPI_RC_BAD_KEYβ if the key atpathToPublicKeyOfNewParentis not suitable for the requeste operation.TSS2_FAPI_RC_KEY_NOT_DUPLICABLEβ if the key is not a duplicable key.TSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORβ if the data cannot be saved.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_NO_TPMβ if FAPI was initialized in no-TPM-mode via its config file.TSS2_FAPI_RC_PATH_NOT_FOUNDβ if a FAPI object path was not found during authorization.TSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the function.TSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned.TSS2_FAPI_RC_BAD_PATHβ if the path is used in inappropriate context or contains illegal characters.
π TSS2_RC Fapi_ExportKey_Finish β the finish-line fairy π
TSS2_RC Fapi_ExportKey_Finish (FAPI_CONTEXT * context, char ** exportedData)
Asynchronous finish function for Fapi_ExportKey. this one should be called after a previous Fapi_ExportKey_Async. like, don't skip it, bestie. π
πΈ Parameters πΈ
contextβ TheFAPI_CONTEXT.exportedDataβ The exported subtree.
π Return values π
TSS2_RC_SUCCESSβ if the function call was a success. πTSS2_FAPI_RC_BAD_REFERENCEβ ifcontextorexportedDataisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_BAD_SEQUENCEβ if the context has an asynchronous operation already pending.TSS2_FAPI_RC_IO_ERRORβ if the data cannot be saved.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.TSS2_FAPI_RC_TRY_AGAINβ if the asynchronous operation is not yet complete. Call this function again later.TSS2_FAPI_RC_BAD_PATHβ if a path is used in inappropriate context or contains illegal characters.TSS2_FAPI_RC_BAD_VALUEβ if an invalid value was passed into the function.TSS2_FAPI_RC_GENERAL_FAILUREβ if an internal error occurred.TSS2_FAPI_RC_PATH_NOT_FOUNDβ if a FAPI object path was not found during authorization.TSS2_FAPI_RC_KEY_NOT_FOUNDβ if a key was not found.TSS2_FAPI_RC_AUTHORIZATION_UNKNOWNβ if a required authorization callback is not set.TSS2_FAPI_RC_AUTHORIZATION_FAILEDβ if the authorization attempt fails.TSS2_FAPI_RC_POLICY_UNKNOWNβ if policy search for a certain policy digest was not successful.TSS2_FAPI_RC_NO_TPMβ if FAPI was initialized in no-TPM-mode via its config file.TSS2_ESYS_RC_*β possible error codes of ESAPI.TSS2_FAPI_RC_NOT_PROVISIONEDβ FAPI was not provisioned.
π Author π
This page was generated automatically by Doxygen for tpm2-tss from the source code. no cap, that's the author situation. π«Ά
okay bye bestie π
this page is from tpm2-tss Version 4.1.5, and the footer is literally Fapi_ExportKey(3) β no date in sight, just vibes. π
π¦ where this page comes from
- fedora 44: tpm2-tss-devel 4.1.5-1.fc44 Β· BSD-2-Clause
- fedora 44: tpm2-tss-devel 4.1.5-1.fc44 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms