MCPcopy Create free account
hub / github.com/apache/arrow / GetFooterEncryptor

Method GetFooterEncryptor

cpp/src/parquet/encryption/internal_file_encryptor.cc:52–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 : properties_(properties), pool_(pool) {}
51
52std::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
66std::shared_ptr<Encryptor> InternalFileEncryptor::GetFooterSigningEncryptor() {
67 if (footer_signing_encryptor_ != nullptr) {

Callers 1

CloseEncryptedFileMethod · 0.80

Calls 4

footer_keyMethod · 0.80
CreateFooterAadFunction · 0.70
algorithmMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected