apache / apache/parquet-java

Add more methods into interface of BlockCipher

Đang mở
#2,653 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Component: Java Component: Parquet Priority: Major Type: enhancement
Ngôn ngữ chính
Java
Star
3.1k
Fork
1.6k
Merge trung bình
3 ngày 12 giờ
Pull request đã merge (30 ngày)
33

Mô tả

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);

**Reporter**: [Xinli Shang](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=shangx@uber.com) / @shangxinli
**Assignee**: [Xinli Shang](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=shangx@uber.com) / @shangxinli

**Note**: *This issue was originally created as [PARQUET-2098](https://issues.apache.org/jira/browse/PARQUET-2098). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu từ interface BlockCipher và kiểm tra các phần triển khai cùng các bên gọi nó để hiểu cách các đầu vào mã hóa và giải mã hiện đang được xử lý. Công việc hoàn tất khi có thể cung cấp offset và length cho việc giải mã, các phương thức mã hóa tương ứng được định nghĩa nhất quán, và hành vi liên quan được kiểm thử.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
cryptography
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.