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