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

Method UnwrapKey

cpp/src/parquet/encryption/test_in_memory_kms.cc:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82SecureString TestOnlyInServerWrapKms::UnwrapKey(
83 const std::string& wrapped_key, const std::string& master_key_identifier) {
84 if (unwrapping_master_key_map_.find(master_key_identifier) ==
85 unwrapping_master_key_map_.end()) {
86 throw ParquetException("Key not found: " + master_key_identifier);
87 }
88 const SecureString& master_key = unwrapping_master_key_map_.at(master_key_identifier);
89
90 std::string aad = master_key_identifier;
91 return internal::DecryptKeyLocally(wrapped_key, master_key, aad);
92}
93
94SecureString TestOnlyInServerWrapKms::GetMasterKeyFromServer(
95 const std::string& master_key_identifier) {

Callers 1

GetDataEncryptionKeyMethod · 0.45

Calls 4

ParquetExceptionFunction · 0.85
DecryptKeyLocallyFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected