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

Function EncryptColumnMetaData

cpp/src/parquet/encryption/internal_file_encryptor.h:50–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected