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" 
// aritOpts is the result of the successful DG_InitMatrixOpts call, and dgTeeCtx is the result of the successful initTeeMpcSql call.
aritOpts.releaseTeeCtx(&dgTeeCtx);

Calculation result: no return value

  • Call the releaseTeeCtx API using the aritOpts output of the successful DG_InitMatrixOpts call.
  • This API is used to release resources when the cryptographic computing feature is not used.