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

Method WrapKey

python/pyarrow/src/arrow/python/parquet_encryption.cc:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31PyKmsClient::~PyKmsClient() {}
32
33std::string PyKmsClient::WrapKey(const ::arrow::util::SecureString& key,
34 const std::string& master_key_identifier) {
35 std::string wrapped;
36 auto st = SafeCallIntoPython([&]() -> Status {
37 vtable_.wrap_key(handler_.obj(), key, master_key_identifier, &wrapped);
38 return CheckPyError();
39 });
40 if (!st.ok()) {
41 throw ::parquet::ParquetStatusException(st);
42 }
43 return wrapped;
44}
45
46::arrow::util::SecureString PyKmsClient::UnwrapKey(
47 const std::string& wrapped_key, const std::string& master_key_identifier) {

Callers

nothing calls this directly

Calls 5

SafeCallIntoPythonFunction · 0.85
CheckPyErrorFunction · 0.85
wrap_keyMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected