mirror of
https://github.com/monero-project/monero.git
synced 2026-01-15 06:13:28 -08:00
new wipeable_string class to replace std::string passphrases
This commit is contained in:
@@ -125,6 +125,14 @@ namespace
|
||||
{
|
||||
(*this)(boost::string_ref(arg));
|
||||
}
|
||||
void operator()(const epee::wipeable_string& arg) const
|
||||
{
|
||||
md5::MD5Update(
|
||||
std::addressof(ctx),
|
||||
reinterpret_cast<const std::uint8_t*>(arg.data()),
|
||||
arg.size()
|
||||
);
|
||||
}
|
||||
|
||||
md5::MD5_CTX& ctx;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user