decryptDefaultAesEncryptedBlocksUnderFhe#

decrypt_default_aes_encrypted_blocks_under_fhe(res: pyhelayers.EncryptedData, encrypted_blocks: List[bytes], aes_key: pyhelayers.AesKey, iv: bytes, number_config: pyhelayers.NumberConfig, data_packing: pyhelayers.DataPacking) None#

Decrypts the given AES-encrypted blocks, running the AES-decryption under FHE given an FHE-encrypted AES secret key. Supports the AES counter (CTR) mode of operation. Assumes the original tensors of numbers were arranged into blocks accoring to a default arrangement.

Parameters:
  • res – The result encrypted data object to populate.

  • encrypted_blocks – The AES-encrypted blocks.

  • aes_key – The AES secret key, encrypted under FHE.

  • iv – The counter mode initialization vector (IV), should contain 16 bytes (128 bits).

  • number_config – The number configuration describing the numbers.

  • data_packing – The desired data packing to pack the numbers into.