Skip to contents

Drops levels levels from x's modulus chain in a single operation. Useful when x is at a deeper level than the ciphertext it will interact with next; level-reducing brings them onto the same rung of the chain.

Usage

level_reduce(x, ...)

Arguments

x

A Ciphertext.

...

Method-specific arguments: eval_key (an EvalKey from key_gen), levels (integer, default 1L).

Value

A Ciphertext at x$level + levels.

Details

An evaluation key is required — supply it from key_gen(cc, eval_mult = TRUE).