Members
ContextData
# readonly firstContextData
The ContextData corresponding to the first encryption parameters that are used for data.
ParmsIdType
# readonly firstParmsId
Returns a ParmsIdType corresponding to the first encryption parameters that are used for data.
ContextData
# readonly keyContextData
The ContextData corresponding to encryption parameters that are used for keys.
ParmsIdType
# readonly keyParmsId
Returns a ParmsIdType corresponding to the set of encryption parameters that are used for keys.
ContextData
# readonly lastContextData
Returns the ContextData corresponding to the last encryption parameters that are used for data.
ParmsIdType
# readonly lastParmsId
The ParmsIdType corresponding to the last encryption parameters that are used for data.
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.
Methods
# delete()
Delete the underlying WASM instance.
Should be called before dereferencing this object to prevent the
WASM heap from growing indefinitely.
# 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 |
ContextData corresponding to encryption parameters
# 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.
boolean