conjugate_transpose
Engine.conjugate_transpose(ciphertext, conjugate_transposition_key)- Returns the conjugate transpose of the input ciphertext. A level is consumed only if the engine is not configured for bootstrapping and the ciphertext is at the maximum allowable level for a given parameter.
- Input:
- Ciphertext
- ConjugateTranspositionKey
- Output:
- Ciphertext
Warning
- The vector form does not support this operation.
from desilofhe import Engine
engine = Engine(form="matrix")
secret_key = engine.create_secret_key()
public_key = engine.create_public_key(secret_key)
conjugate_transposition_key = engine.create_conjugate_transposition_key(
secret_key
)
message = [1, 2, 3]
ciphertext = engine.encrypt(message, public_key)
conjugate_transposed_ciphertext = engine.conjugate_transpose(
ciphertext, conjugate_transposition_key
)