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

AES transciphering

Encrypting data with CKKS on a client is expensive and produces large ciphertexts. With transciphering, clients encrypt with ordinary AES-128 and send compact AES records. The server evaluates AES decryption homomorphically and obtains CKKS ciphertexts of the plaintext, without learning the plaintext or the AES key.

  1. The key holder registers each client’s AES-128 key. Inside YUENIX the key is encrypted under CKKS and never appears in the clear on the evaluator.
  2. The client encrypts its record with AES-128-CTR or AES-128-GCM and sends it to the evaluator.
  3. The evaluator transciphers the record into CKKS ciphertexts.
  4. For GCM, the key holder checks the authentication tag before any result built from that record can be released.
Mode Input Output
CTR 16-byte initial counter block and ciphertext CKKS ciphertexts of the plaintext bytes or of decoded numbers
GCM 12-byte nonce, AAD (up to 4,096 bytes), ciphertext and 16-byte tag as CTR, plus a pending authorization that only the key holder can admit

Record capacity depends on the transciphering profile. yuenix_transcipher_query reports the maximum record size for the plan.

yuenix_record rec = {
.struct_size = sizeof rec,
.iv = nonce, .iv_size = 12,
.data = ct, .size = ct_len,
.aad = aad, .aad_size = aad_len,
.tag = tag, .tag_size = 16,
};
yuenix_transcipher(ev, client_id, &rec, &out); /* evaluator */
yuenix_admit(keys, out, &expected_rec); /* key holder: checks tag and AAD */

yuenix_admit returns YUENIX_ERR_AUTHENTICATION if the tag does not verify. An authorization that has failed or has already been consumed cannot be reused.

Applications that send numbers, such as model updates, describe how bytes map to values: count, scale and offset for each field. The transciphered output is then a CKKS vector ready for aggregation. Nonce allocation, transport, and the meaning of AAD fields are up to the application.

AES-128-CTR to CKKS runs at 1.94 Mbps on one RTX 5090 at default power. That run used a 32 KB batch of 2,048 blocks, produced 4 ciphertexts with N = 2^16, and was timed end to end as the mean of repeated runs. See Performance.