You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "Xinli Shang (Jira)" <ji...@apache.org> on 2021/09/30 02:09:00 UTC
[jira] [Created] (PARQUET-2098) Add more methods into interface of
BlockCipher
Xinli Shang created PARQUET-2098:
------------------------------------
Summary: Add more methods into interface of BlockCipher
Key: PARQUET-2098
URL: https://issues.apache.org/jira/browse/PARQUET-2098
Project: Parquet
Issue Type: Improvement
Components: parquet-mr
Reporter: Xinli Shang
Assignee: Xinli Shang
Currently BlockCipher interface has methods without letting caller to specify length/offset. In some use cases like Presto, it is needed to pass in a byte array and the data to be encrypted only occupys partially of the array. So we need to add a new methods something like below for decrypt. Similar methods might be needed for encrypt.
byte[] decrypt(byte[] ciphertext, int cipherTextOffset, int cipherTextLength, byte[] aad);
--
This message was sent by Atlassian Jira
(v8.3.4#803005)