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

Method InitDecryption

cpp/src/parquet/column_reader.cc:317–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315};
316
317void SerializedPageReader::InitDecryption() {
318 // Prepare the AAD for quick update later.
319 if (crypto_ctx_.data_decryptor_factory) {
320 data_decryptor_ = crypto_ctx_.data_decryptor_factory();
321 if (data_decryptor_) {
322 ARROW_DCHECK(!data_decryptor_->file_aad().empty());
323 data_page_aad_ = encryption::CreateModuleAad(
324 data_decryptor_->file_aad(), encryption::kDataPage,
325 crypto_ctx_.row_group_ordinal, crypto_ctx_.column_ordinal, kNonPageOrdinal);
326 }
327 }
328 if (crypto_ctx_.meta_decryptor_factory) {
329 meta_decryptor_ = crypto_ctx_.meta_decryptor_factory();
330 if (meta_decryptor_) {
331 ARROW_DCHECK(!meta_decryptor_->file_aad().empty());
332 data_page_header_aad_ = encryption::CreateModuleAad(
333 meta_decryptor_->file_aad(), encryption::kDataPageHeader,
334 crypto_ctx_.row_group_ordinal, crypto_ctx_.column_ordinal, kNonPageOrdinal);
335 }
336 }
337}
338
339void SerializedPageReader::UpdateDecryption(Decryptor* decryptor, int8_t module_type,
340 std::string* page_aad) {

Callers

nothing calls this directly

Calls 2

CreateModuleAadFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected