Interface

Context

Context

Members

ContextData

# readonly firstContextData

The ContextData corresponding to the first encryption parameters that are used for data.

View Source context.ts, line 93

ParmsIdType

# readonly firstParmsId

Returns a ParmsIdType corresponding to the first encryption parameters that are used for data.

View Source context.ts, line 143

ContextData

# readonly keyContextData

The ContextData corresponding to encryption parameters that are used for keys.

View Source context.ts, line 80

ParmsIdType

# readonly keyParmsId

Returns a ParmsIdType corresponding to the set of encryption parameters that are used for keys.

View Source context.ts, line 130

ContextData

# readonly lastContextData

Returns the ContextData corresponding to the last encryption parameters that are used for data.

View Source context.ts, line 106

ParmsIdType

# readonly lastParmsId

The ParmsIdType corresponding to the last encryption parameters that are used for data.

View Source context.ts, line 156

boolean

# readonly usingKeyswitching

Whether the coefficient modulus supports keyswitching. In practice, support for keyswitching is required by Evaluator.relinearize, Evaluator.applyGalois, and all rotation and conjugation operations. For keyswitching to be available, the coefficient modulus parameter must consist of at least two prime number factors.

View Source context.ts, line 169

Methods

# delete()

Delete the underlying WASM instance. Should be called before dereferencing this object to prevent the WASM heap from growing indefinitely.

View Source context.ts, line 39

# getContextData(parmsId) → {ContextData}

Returns the ContextData corresponding to encryption parameters with a given parmsId. If parameters with the given parmsId are not found then the function returns nullptr.
Parameters:
Name Type Description
parmsId ParmsIdType Specific id to return ContextData for

View Source context.ts, line 64

ContextData corresponding to encryption parameters
ContextData

# parametersSet() → {boolean}

Whether the encryption parameters are set in a way that is considered valid by Microsoft SEAL, the variable parameters_set is set to true.

View Source context.ts, line 119

boolean