relinearize: Relinearize a higher-degree ciphertext

relinearizeR Documentation

Relinearize a higher-degree ciphertext

Description

Reduces a ciphertext to 2 polynomial components. Needed after a sequence of eval_mult_no_relin() calls to restore a decryptable form. A relinearization key must have been generated via key_gen(cc, eval_mult = TRUE) before calling this.

Usage

relinearize(x, ...)

Arguments

x

A Ciphertext (may have more than 2 components).

...

Reserved for future method-specific arguments.

Value

A Ciphertext with exactly 2 components.


openfhe.R documentation built on Nov. 13, 2026, 5:07 p.m.