我要评分
获取效率
正确性
完整性
易理解

DG_InitPsiOpts

Initializes the function group for the PSI operator.

DG_PrivateSet_Opts DG_InitPsiOpts()

Parameters

None

Table 1 DG_PrivateSet_Opts structure

Name

Type

Description

initTeeCtx

Function pointer

int (*initTeeCtx)(DG_Cfg dgCfg, DG_TeeCtx **dgTeeCtx);

Initializes the KCAL object.

releaseTeeCtx

Function pointer

void (*releaseTeeCtx)(DG_TeeCtx **dgTeeCtx);

Releases the KCAL object.

setTeeNodeInfos

Function pointer

int (*setTeeNodeInfos)(DG_TeeCtx *dgTeeCtx, struct TeeNodeInfos *teeNodeInfos);

Sets the information about all nodes.

calculate

Function pointer

int (*calculate)(DG_TeeCtx *dgTeeCtx, DG_AlgorithmsType type, DG_TeeInput *input, DG_TeeOutput **output,

DG_TeeMode outputMode);

Executes the PSI operator.

releaseOutput

Function pointer

void (*releaseOutput)(DG_TeeOutput **output);

Releases output resources.

Return Values

Dg_PrivateSet_Opts: PSI operation set object

Error Codes

None

Dependency

#include "data_guard_mpc.h": the header file where the API declaration is stored.

Example

#include  "data_guard_mpc.h" 
   
 DG_PrivateSet_Opts teeOpts = DG_InitPsiOpts();

This function initializes the function group for the PSI operator. The DG_PrivateSet_Opts includes all public functions for the PSI operator.