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

Method SecureClear

cpp/src/arrow/util/secure_string.cc:74–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72} // namespace
73
74void SecureString::SecureClear(std::string* secret) {
75 // call SecureClear first just in case secret->clear() frees some memory
76 SecureClear(reinterpret_cast<uint8_t*>(secret->data()), secret->capacity());
77 secret->clear();
78}
79
80inline void SecureString::SecureClear(uint8_t* data, size_t size) {
81 // There is various prior art for this:

Callers

nothing calls this directly

Calls 3

dataMethod · 0.45
capacityMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected