Rate This Document
Findability
Accuracy
Completeness
Readability

DG_InitPsmOpts

Initializes the function group for the PSM operator.

DG_PIR_Opts DG_InitPsmOpts()

Parameters

None.

Table 1 DG_PrivateSet_Opts structure

Member

Type

Description

initTeeCtx

Function pointer

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

Initializes the MPC object.

releaseTeeCtx

Function pointer

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

Releases the MPC object.

setTeeNodeInfos

Function pointer

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

Sets the information about all nodes.

offlineCalculate

Function pointer

int (*offlineCalculate)(DG_TeeCtx *dgTeeCtx, DG_TeeInput *input, DG_Buckets **buckets);

The server executes offline calculations.

clientCalculate

Function pointer

int (*clientCalculate)(DG_TeeCtx *dgTeeCtx, DG_TeeMode outputMode, DG_TeeInput *input, DG_TeeOutput **output);

The client executes online operations.

serverCalculate

Function pointer

int (*serverCalculate)(DG_TeeCtx *dgTeeCtx, DG_Buckets *buckets);

The server executes online operations.

releaseOutput

Function pointer

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

Releases output resources.

releaseBuckets

Function pointer

void (*releaseBuckets)(DG_Buckets **buckets);

Releases bucket data generated by the offline operations on the server.

Return Values

DG_PSM_Opts: PSM 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_PSM_Opts psmOpts = DG_InitPsmOpts();

This function initializes the function group for the PSM operator. The DG_PSM_Opts includes all public functions for the PSM operator.