Learn R Programming

openfhe.R (version 1.6.1)

eval_at_index_key_gen: Generate at-index (rotation) keys for a secret key

Description

Standalone wrapper around the CryptoContext::EvalAtIndexKeyGen(privateKey, indexList) C++ method. Functionally identical to eval_rotate_key_gen() (the C++ EvalRotateKeyGen is a thin inline wrapper around EvalAtIndexKeyGen) and both names are provided to mirror the C++ API.

Usage

eval_at_index_key_gen(cc, sk, index_list)

Value

NULL, invisibly.

Arguments

cc

A CryptoContext.

sk

A PrivateKey whose tag will be used to key the generated rotation keys in the cc's internal registry.

index_list

Integer vector of rotation indices.