| 48 | int32_t Encrypt(std::span<const uint8_t> plaintext, std::span<uint8_t> ciphertext); |
| 49 | |
| 50 | bool EncryptColumnMetaData( |
| 51 | bool encrypted_footer, |
| 52 | const std::shared_ptr<ColumnEncryptionProperties>& column_encryption_properties) { |
| 53 | // if column is not encrypted then do not encrypt the column metadata |
| 54 | if (!column_encryption_properties || !column_encryption_properties->is_encrypted()) |
| 55 | return false; |
| 56 | // if plaintext footer then encrypt the column metadata |
| 57 | if (!encrypted_footer) return true; |
| 58 | // if column is not encrypted with footer key then encrypt the column metadata |
| 59 | return !column_encryption_properties->is_encrypted_with_footer_key(); |
| 60 | } |
| 61 | |
| 62 | private: |
| 63 | encryption::AesEncryptor* aes_encryptor_; |
nothing calls this directly
no outgoing calls
no test coverage detected