Conjugation Key-Based Conjugation
GLEngine.conjugate(ciphertext, conjugation_key)
- Returns the conjugation of the input ciphertext.
Does not consume any level.
- Input:
- GLCiphertext
- GLConjugationKey
- Output:
import numpy as np
from desilofhe import GLEngine
engine = GLEngine()
shape = engine.shape
secret_key = engine.create_secret_key()
conjugation_key = engine.create_conjugation_key(secret_key)
message = np.ones(shape, dtype=np.float64)
ciphertext = engine.encrypt(message, secret_key)
conjugated = engine.conjugate(ciphertext, conjugation_key)
Plaintext Conjugation
GLEngine.conjugate(plaintext)
- Returns the conjugation of the input plaintext.
import numpy as np
from desilofhe import GLEngine
engine = GLEngine()
shape = engine.shape
message = np.ones(shape, dtype=np.float64)
plaintext = engine.encode(message)
conjugated = engine.conjugate(plaintext)