Class default

A class for homorphic encryption based on the Desilo's HE solution.

Constructors

Properties

_initialized: boolean

Whether the class is initialized or not.

seal: any

The DesiloSeal object.

Accessors

  • get initialized(): boolean
  • Getter for _initialized.

    Returns boolean

Methods

  • Doubles an input cipher text and performs a homorphic calculation on it. This is a method for test purposes only.

    Parameters

    • cipherText: CipherText

    Returns Object

    The result of the homorphic calculation.

  • Returns the key set currently in use. It temporarily returns the secret key only due to memory issues. This is a method for test purposes only.

    Returns Object

    The key set.

  • Decrypts a ciphertext to an float64 array.

    Parameters

    • cipherText: CipherText

      The ciphertext.

    Returns Float64Array

    The float64 array decrypted.

  • Encrypts a length-fixed array into a ciphertext.

    Parameters

    • array: Float64Array

      The array of length poly_mod_degree / 2.

    Returns CipherText

    The cipertext encrypted.