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 according 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.
-
void helayers::decryptDefaultAesEncryptedBlocksUnderFhe(EncryptedData &res, const std::vector<std::vector<unsigned char>> &encryptedBlocks, const AesKey &aesKey, const std::vector<unsigned char> &iv, const NumberConfig &numberConfig, const DataPacking &dataPacking)#
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 according to a default arrangement.
- Parameters:
res – The result encrypted data object to populate.
encryptedBlocks – The AES-encrypted blocks.
aesKey – The AES secret key, encrypted under FHE.
iv – The counter mode initialization vector (IV), should contain 16 bytes (128 bits).
numberConfig – The number configuration describing the numbers.
dataPacking – The desired data packing to pack the numbers into.