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" 
 // pirOpts is the result of the successful DG_InitPirOpts call, and dgTeeCtx is the result of the successful initTeeCtx call.
 pirOpts.releaseTeeCtx(&dgTeeCtx);
Calculation result: no return value
  • Call the releaseTeeCtx API using the pirOpts output of the successful DG_InitPirOpts call.
  • This API is used to release resources when the cryptographic computing feature is not used.