Rate This Document
Findability
Accuracy
Completeness
Readability

releaseTeeCtx

Releases the KCAL context.

void releaseTeeCtx(
        DG_TeeCtx **dgTeeCtx
)

Parameters

Parameter

Description

Value Range

Input/Output

dgTeeCtx

KCAL context

It is not null as a single pointer or a double pointer.

Input

Return Values

None

Error Codes

None

Dependency

This function depends on the return result of initTeeCtx and is used together with initTeeCtx.

Example

#include  "data_guard_mpc.h" 
 // teeOpts is the result of the successful DG_InitPsiOpts call, and dgTeeCtx is the result of the successful initTeeCtx call.
teeOpts.releaseTeeCtx(&dgTeeCtx);
Calculation result: no return value
  • Call the releaseTeeCtx API using the teeOpts output of the successful DG_InitPsiOpts call.
  • This API is used to release resources when the cryptographic computing feature is not used.