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

Method GetColumnDecryptor

cpp/src/parquet/encryption/internal_file_decryptor.cc:135–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135std::unique_ptr<Decryptor> InternalFileDecryptor::GetColumnDecryptor(
136 const std::string& column_path, const std::string& column_key_metadata,
137 const std::string& aad, bool metadata) {
138 const SecureString& column_key = GetColumnKey(column_path, column_key_metadata);
139 auto key_len = static_cast<int32_t>(column_key.size());
140 auto aes_decryptor = encryption::AesDecryptor::Make(algorithm_, key_len, metadata);
141 return std::make_unique<Decryptor>(std::move(aes_decryptor), column_key, file_aad_, aad,
142 pool_);
143}
144
145std::function<std::unique_ptr<Decryptor>()>
146InternalFileDecryptor::GetColumnDecryptorFactory(

Callers

nothing calls this directly

Calls 2

MakeFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected