| 50 | : properties_(properties), pool_(pool) {} |
| 51 | |
| 52 | std::shared_ptr<Encryptor> InternalFileEncryptor::GetFooterEncryptor() { |
| 53 | if (footer_encryptor_ != nullptr) { |
| 54 | return footer_encryptor_; |
| 55 | } |
| 56 | |
| 57 | ParquetCipher::type algorithm = properties_->algorithm().algorithm; |
| 58 | std::string footer_aad = encryption::CreateFooterAad(properties_->file_aad()); |
| 59 | const SecureString& footer_key = properties_->footer_key(); |
| 60 | auto aes_encryptor = GetMetaAesEncryptor(algorithm, footer_key.size()); |
| 61 | footer_encryptor_ = std::make_shared<Encryptor>( |
| 62 | aes_encryptor, footer_key, properties_->file_aad(), footer_aad, pool_); |
| 63 | return footer_encryptor_; |
| 64 | } |
| 65 | |
| 66 | std::shared_ptr<Encryptor> InternalFileEncryptor::GetFooterSigningEncryptor() { |
| 67 | if (footer_signing_encryptor_ != nullptr) { |
no test coverage detected