Class SEALClient
java.lang.Object
org.apache.sysds.runtime.controlprogram.paramserv.homomorphicEncryption.SEALClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencrypt(MatrixObject plaintext) encrypts one block of data with public key stored statically and returns it setPublicKey() must have been called before calling thisgenerates a partial public key stores a partial private key corresponding to the partial public key in ctxpartiallyDecrypt(CiphertextMatrix ciphertext) partially decrypts ciphertext with the partial private key.voidsetPublicKey(PublicKey public_key) sets the public key and stores it in ctx
-
Constructor Details
-
SEALClient
public SEALClient(byte[] a)
-
-
Method Details
-
generatePartialPublicKey
generates a partial public key stores a partial private key corresponding to the partial public key in ctx- Returns:
- the partial public key
-
setPublicKey
sets the public key and stores it in ctx- Parameters:
public_key- the public key to set
-
encrypt
encrypts one block of data with public key stored statically and returns it setPublicKey() must have been called before calling this- Parameters:
plaintext- the MatrixObject to encrypt- Returns:
- the encrypted matrix
-
partiallyDecrypt
partially decrypts ciphertext with the partial private key. generatePartialPublicKey() must have been called before calling this function- Parameters:
ciphertext- the ciphertext to partially decrypt- Returns:
- the partial decryption of ciphertext
-