Skip to contents

Adds a vector of EvalKey objects to the CryptoContext's internal EvalMult-key map under key_tag. Silently replaces any existing matching keys. If key_tag is the empty string ("", the default), the tag is retrieved from the eval-key vector itself (each EvalKey carries its own tag).

Usage

insert_eval_mult_key(eval_keys, key_tag = "")

Arguments

eval_keys

A list of EvalKey objects (from multi_key_switch_gen(), multi_add_eval_mult_keys(), or from a deserialization).

key_tag

Character; the tag to register the vector under. Default "" (auto-detect from the first eval key in the vector).

Value

NULL, invisibly.

Details

Used in checkpoint/resume workflows: after fhe_deserialize_eval_keys() or multi_add_eval_mult_keys() produces a combined eval-mult key vector, this function registers it into the cc's internal storage so that subsequent eval_mult() calls on ciphertexts encrypted under the associated party's key can consume it.