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