-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allow more encryption algorithms #9203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
xanderbailey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I exposed quote style here I exported the underlying QuoteStyle is that something we might want to do here also for Algorithm?
|
Thank you for the review, I took a look at your PR. You made Do you mean you'd like to make |
| use crate::errors::Result; | ||
| use crate::file::metadata::HeapSize; | ||
| use ring::aead::{AES_128_GCM, Aad, LessSafeKey, NonceSequence, UnboundKey}; | ||
| use ring::aead::{AES_128_GCM, Aad, LessSafeKey, NonceSequence, UnboundKey, Algorithm}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this have cargo fmt run on it? The order looks off to me.
| keys: DecryptionKeys, | ||
| aad_prefix: Option<Vec<u8>>, | ||
| footer_signature_verification: bool, | ||
| algorithm: &'static Algorithm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why static?
Which issue does this PR close?
Rationale for this change
arrow-rsfor Parquet I/O, I'd like to start supporting AES 256 with this PR.What changes are included in this PR?
new_with_algorithmfunction toRingGcmBlockEncryptorandRingGcmBlockDecryptor, which takes one moreAlgorithmargument.Are these changes tested?
Yes, unit test and on AES-256 encrypted Parquet files.
Are there any user-facing changes?
Yes, added a new API