prepareDefaultPlainBlocksForAesEncryption#
- prepare_default_plain_blocks_for_aes_encryption(inputs: List[numpy.ndarray[numpy.float64]], number_config: pyhelayers.NumberConfig) List[List[int]] #
Arranges the given inputs, containing tensors with numbers, into blocks of bytes to be encrypted under AES. Returns a default arrangement that does not consider how the data will be packed and used after decrypting the AES.
- Parameters:
inputs – The inputs to arrange into blocks.
number_config – The number configuration describing the numbers.
-
std::vector<std::vector<unsigned char>> helayers::prepareDefaultPlainBlocksForAesEncryption(const std::vector<DoubleTensorCPtr> &inputs, const NumberConfig &numberConfig)#
Arranges the given inputs, containing tensors with numbers, into blocks of bytes to be encrypted under AES.
Returns a default arrangement that does not consider how the data will be packed and used after decrypting the AES.
- Parameters:
inputs – The inputs to arrange into blocks.
numberConfig – The number configuration describing the numbers.