| 550 | friend class BufferedPageWriter; |
| 551 | |
| 552 | void InitEncryption() { |
| 553 | // Prepare the AAD for quick update later. |
| 554 | if (data_encryptor_ != nullptr) { |
| 555 | data_page_aad_ = encryption::CreateModuleAad( |
| 556 | data_encryptor_->file_aad(), encryption::kDataPage, row_group_ordinal_, |
| 557 | column_ordinal_, kNonPageOrdinal); |
| 558 | } |
| 559 | if (meta_encryptor_ != nullptr) { |
| 560 | data_page_header_aad_ = encryption::CreateModuleAad( |
| 561 | meta_encryptor_->file_aad(), encryption::kDataPageHeader, row_group_ordinal_, |
| 562 | column_ordinal_, kNonPageOrdinal); |
| 563 | } |
| 564 | } |
| 565 | |
| 566 | void UpdateEncryption(int8_t module_type) { |
| 567 | switch (module_type) { |
nothing calls this directly
no test coverage detected