|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Sensitive-data wiping helpers. More...
Go to the source code of this file.
Functions | |
| void | keepass::detail::WipeStream (std::stringstream &stream) |
| template<typename Container > | |
| void | keepass::detail::WipeBuffer (Container *buffer) |
Sensitive-data wiping helpers.
|
inline |
Zeroizes the contents of a contiguous container (std::string, std::string view or std::vector<char/uint8_t>) in place. std::string_view::data() is const even in C++17, so cast it away for the wipe; writing zeros never invalidates the container invariants.
|
inline |
Zeroizes the buffered content of a stringstream in place, so that decrypted plaintext or transient header material does not linger in the heap after parsing or encrypting.