Rate This Document
Findability
Accuracy
Completeness
Readability

releaseTeeCtx

Releases the KCAL context.

void releaseTeeCtx(
     DG_TeeCtx **dgTeeCtx
)

Parameters

Table 1 Description

Parameter

Description

Value Range

Input/Output

dgTeeCtx

KCAL context

It is null as a single pointer and cannot be null as 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.
  • #include "data_guard_mpc.h": required header file

Example

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