aboutsummaryrefslogtreecommitdiff
path: root/src/validationinterface.h
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2023-10-02 11:58:48 +0200
committerfanquake <fanquake@gmail.com>2023-10-02 12:16:20 +0200
commit0f9307c4cbaeb605acb0584f3677009d2962f0a4 (patch)
tree66cb63b92b766fc82f7078e1ddcfdb00830a2437 /src/validationinterface.h
parente3b052800f61abcb7d19d1a35fa04c195f3503ab (diff)
parent6ef405ddb195bbf1b28a906d8c8bb877f0c17d7b (diff)
downloadbitcoin-0f9307c4cbaeb605acb0584f3677009d2962f0a4.tar.xz
Merge bitcoin/bitcoin#28500: Prevent default/invalid CKey objects from allocating secure memory
6ef405ddb195bbf1b28a906d8c8bb877f0c17d7b key: don't allocate secure mem for null (invalid) key (Pieter Wuille) d9841a7ac634472c1a9105f81f8e7b55e4bd1a4a Add make_secure_unique helper (Anthony Towns) Pull request description: Bitcoin Core has `secure_allocator`, which allocates inside special "secure" (non-swappable) memory pages, which may be limited in availability. Currently, every `CKey` object uses 32 such secure bytes, even when the `CKey` object contains the (invalid) value zero. Change this to not use memory when the `CKey` is invalid. This is particularly relevant for `BIP324Cipher` which briefly holds a `CKey`, but after receiving the remote's public key and initializing the encryption ciphers, the key is wiped. In case secure memory usage is in high demand, it'd be silly to waste it on P2P encryption keys instead of wallet keys. ACKs for top commit: ajtowns: ACK 6ef405ddb195bbf1b28a906d8c8bb877f0c17d7b john-moffett: ACK 6ef405ddb195bbf1b28a906d8c8bb877f0c17d7b Tree-SHA512: 987f4376ed825daf034ea4d7c4b4952fe664b25b48f1c09fbcfa6257a40b06c4da7c2caaafa35c346c86bdf298ae21f16c68ea4b1039836990d1a205de2034fd
Diffstat (limited to 'src/validationinterface.h')
0 files changed, 0 insertions, 0 deletions