rippled
Loading...
Searching...
No Matches
secure_erase.cpp
1#include <xrpl/crypto/secure_erase.h>
2
3#include <openssl/crypto.h>
4
5#include <cstddef>
6
7namespace ripple {
8
9void
10secure_erase(void* dest, std::size_t bytes)
11{
12 OPENSSL_cleanse(dest, bytes);
13}
14
15} // namespace ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
void secure_erase(void *dest, std::size_t bytes)
Attempts to clear the given blob of memory.