/usr/local/lib64/python3.6/site-packages/pyarrow/include/parquet/encryption
NameSizeModeActions
crypto_factory.h57770644editdlrm
encryption.h196520644editdlrm
file_key_material_store.h12890644editdlrm
file_key_unwrapper.h29190644editdlrm
file_key_wrapper.h35670644editdlrm
key_encryption_key.h22580644editdlrm
key_material.h62470644editdlrm
key_metadata.h40670644editdlrm
key_toolkit.h29860644editdlrm
kms_client.h31740644editdlrm
kms_client_factory.h13190644editdlrm
local_wrap_kms_client.h39800644editdlrm
test_encryption_util.h44390644editdlrm
test_in_memory_kms.h32070644editdlrm
two_level_cache_with_expiration.h51010644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/pyarrow/include/parquet/encryption/key_encryption_key.h (2258B)
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. #pragma once #include #include #include "arrow/util/base64.h" namespace parquet { namespace encryption { // In the double wrapping mode, each "data encryption key" (DEK) is encrypted with a “key // encryption key” (KEK), that in turn is encrypted with a "master encryption key" (MEK). // In a writer process, a random KEK is generated for each MEK ID, and cached in a map. This allows to perform an interaction with a KMS server only once for each // MEK, in order to wrap its KEK. "Data encryption key" (DEK) wrapping is performed // locally, and does not involve an interaction with a KMS server. class KeyEncryptionKey { public: KeyEncryptionKey(std::string kek_bytes, std::string kek_id, std::string encoded_wrapped_kek) : kek_bytes_(std::move(kek_bytes)), kek_id_(std::move(kek_id)), encoded_kek_id_(::arrow::util::base64_encode(kek_id_)), encoded_wrapped_kek_(std::move(encoded_wrapped_kek)) {} const std::string& kek_bytes() const { return kek_bytes_; } const std::string& kek_id() const { return kek_id_; } const std::string& encoded_kek_id() const { return encoded_kek_id_; } const std::string& encoded_wrapped_kek() const { return encoded_wrapped_kek_; } private: std::string kek_bytes_; std::string kek_id_; std::string encoded_kek_id_; std::string encoded_wrapped_kek_; }; } // namespace encryption } // namespace parquet