mapleFU commented on code in PR #43222:
URL: https://github.com/apache/arrow/pull/43222#discussion_r1679672893
##########
cpp/src/parquet/encryption/internal_file_encryptor.cc:
##########
@@ -52,8 +52,15 @@
InternalFileEncryptor::InternalFileEncryptor(FileEncryptionProperties* propertie
void InternalFileEncryptor::WipeOutEncryptionKeys() {
properties_->WipeOutEncryptionKeys();
- for (auto const& i : all_encryptors_) {
- i->WipeOut();
+ for (auto const& i : meta_encryptor_) {
+ if (i != nullptr) {
Review Comment:
```
// Key must be 16, 24 or 32 bytes in length. Thus there could be up to
three
// types of meta_encryptors and data_encryptors.
std::unique_ptr<encryption::AesEncryptor> meta_encryptor_[3];
std::unique_ptr<encryption::AesEncryptor> data_encryptor_[3];
```
This is as said before, since it might only has one?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]