Skip to contents

A ciphertext encrypted under a public key has modulus Q and dimension N. switch_ct_to_qn() converts it to modulus q and dimension n, the form the gates take.

Usage

switch_ct_to_qn(ctx, ksk, ct)

Arguments

ctx

A BinFHEContext.

ksk

An LWESwitchingKey, from get_switch_key() or bin_key_switch_gen().

ct

An LWECiphertext of modulus Q and dimension N.

Value

An LWECiphertext.