Skip to contents

eval_at_index(ct, i) moves slot i + k to slot k: a positive index rotates to the left, a negative one to the right. Needs the key for that index (eval_at_index_key_gen()). eval_rotate() calls the C++ function EvalRotate, which does the same thing.

Usage

eval_at_index(ct, index)

Arguments

ct

A Ciphertext.

index

Integer; the rotation index.

Value

A Ciphertext.