Skip to content
YUENIX-FHEContact
Preview documentation. The YUENIX-FHE 1.0 API is in development and names or signatures may change before release. Request an evaluation

Keys, roles and deployment

YUENIX separates the party that can decrypt from the party that computes.

Object Held by Contains
yuenix_keyset key holder secret key, encryption randomness source, registered AES keys
yuenix_evaluator evaluator relinearization, rotation and bootstrapping keys (public)
yuenix_ciphertext either encrypted slots plus the key-family identity

Each call to yuenix_keyset_generate creates a new key family. Combining ciphertexts from different families fails with YUENIX_ERR_KEY_MISMATCH.

For tests and single-machine services, derive the evaluator directly:

yuenix_evaluator_from_keyset(keys, &ev);

The key holder exports evaluation keys once. The evaluator imports them, and ciphertexts travel in both directions.

/* key holder */
yuenix_buffer evk = {0};
yuenix_keyset_export_evaluation_keys(keys, &evk); /* send evk.data, evk.size */
/* evaluator */
yuenix_evaluator_import(ctx, plan, evk.data, evk.size, &ev);
/* either side */
yuenix_buffer blob = {0};
yuenix_ciphertext_serialize(ct, &blob);
yuenix_ciphertext_deserialize(ctx, plan, blob.data, blob.size, &ct2);
yuenix_buffer_free(&blob);

Serialized objects carry a format version, the plan digest and the key-family identity, and they are checked on import. Deserialization rejects malformed input and objects from a different plan or key family.

Bootstrapping evaluation keys are large, often several gigabytes for N = 2^16 profiles. Plan for transfer and storage accordingly.

The evaluator is assumed semi-honest: it follows the protocol but may try to learn from what it sees. CKKS decryption results reveal slightly more than the exact plaintext, so do not return decrypted values to untrusted parties without adding noise. For AES-GCM inputs, authentication is checked by the key holder before results are released (see AES transciphering).