17 lines
610 B
C
17 lines
610 B
C
// Copyright (c) 2009-2010 Satoshi Nakamoto
|
|
// Copyright (c) 2009-2015 The Bitcoin Core developers
|
|
// Copyright (c) 2019-2023 The Zcash developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
|
|
|
|
#ifndef BITCOIN_SUPPORT_CLEANSE_H
|
|
#define BITCOIN_SUPPORT_CLEANSE_H
|
|
|
|
#include <stdlib.h>
|
|
|
|
/** Secure overwrite a buffer (possibly containing secret data) with zero-bytes. The write
|
|
* operation will not be optimized out by the compiler. */
|
|
void memory_cleanse(void *ptr, size_t len);
|
|
|
|
#endif // BITCOIN_SUPPORT_CLEANSE_H
|