AesKey#

class AesKey#

A class to hold the AES secret key encrypted under FHE, required for decryption of AES ciphertexts under FHE.

he_encrypt(self: pyhelayers.AesKey, plain_key: bytes, compress: bool = True) None#

Encrypt the given plaintext AES key under FHE.

Parameters:
  • plain_key – The plaintext AES key, of size 128, 192 or 256 bits (16, 24 or 32 bytes, respectively).

  • compress – Whether to store the key in a compressed fashion (recommended). This will result in much smaller object when saving to binary, but will require more time to uncompress when loading the key.