Secure memory handling: zeroization, locked allocations and sensitive value containers.
More...
|
| LIBKEEPASS_API void | keepass::secure_zero (void *data, std::size_t size) noexcept |
| | Securely erases a memory region by overwriting it with zero bytes.
|
| |
| LIBKEEPASS_API void * | keepass::secure_alloc (std::size_t size) noexcept |
| | Allocates a memory region that is best-effort locked in RAM.
|
| |
| LIBKEEPASS_API void | keepass::secure_free (void *data, std::size_t size) noexcept |
| | Erases and releases memory obtained from secure_alloc().
|
| |
|
LIBKEEPASS_API bool | keepass::operator== (const secure_string &lhs, const secure_string &rhs) |
| | Returns whether two secure strings hold the same bytes.
|
| |
|
LIBKEEPASS_API bool | keepass::operator!= (const secure_string &lhs, const secure_string &rhs) |
| | Returns whether two secure strings hold different bytes.
|
| |
|
LIBKEEPASS_API bool | keepass::operator== (const secure_string &lhs, const std::string &rhs) |
| | Returns whether a secure string matches a std::string.
|
| |
|
LIBKEEPASS_API bool | keepass::operator== (const std::string &lhs, const secure_string &rhs) |
| | Returns whether a std::string matches a secure string.
|
| |
|
LIBKEEPASS_API bool | keepass::operator!= (const secure_string &lhs, const std::string &rhs) |
| | Returns whether a secure string differs from a std::string.
|
| |
|
LIBKEEPASS_API bool | keepass::operator!= (const std::string &lhs, const secure_string &rhs) |
| | Returns whether a std::string differs from a secure string.
|
| |
|
LIBKEEPASS_API bool | keepass::operator== (const secure_string &lhs, const char *rhs) |
| | Returns whether a secure string matches a NUL-terminated C string.
|
| |
|
LIBKEEPASS_API bool | keepass::operator== (const char *lhs, const secure_string &rhs) |
| | Returns whether a NUL-terminated C string matches a secure string.
|
| |
|
LIBKEEPASS_API bool | keepass::operator!= (const secure_string &lhs, const char *rhs) |
| | Returns whether a secure string differs from a NUL-terminated C string.
|
| |
|
LIBKEEPASS_API bool | keepass::operator!= (const char *lhs, const secure_string &rhs) |
| | Returns whether a NUL-terminated C string differs from a secure string.
|
| |
|
LIBKEEPASS_API std::ostream & | keepass::operator<< (std::ostream &os, const secure_string &str) |
| | Writes the string content to a stream.
|
| |
Secure memory handling: zeroization, locked allocations and sensitive value containers.