Skip to content

mlock() all private keys in memory - #341

Closed
nobled wants to merge 1 commit into
bitcoin:masterfrom
nobled:seckeys
Closed

nobled wants to merge 1 commit into
bitcoin:masterfrom
nobled:seckeys

Conversation

@nobled

@nobled nobled commented Jun 24, 2011

Copy link
Copy Markdown
Contributor

Inline comment about VirtualLock() and general idea come from Matt Corallo's encprivkeys branch. By adding it to the custom allocator like this though, it's done for us on all CPrivKey objects automagically.

Inline comment and idea come from the encprivkeys branch
by Matt Corallo <[email protected]>.
@sipa

sipa commented Jun 24, 2011

Copy link
Copy Markdown
Member

I like this, but an munlock() call should be issued when deallocating, after clearing the memory.

@gavinandresen

Copy link
Copy Markdown
Contributor

Good idea; add a munlock and rebase and looks to me like it's ready to pull.

@TheBlueMatt

Copy link
Copy Markdown
Contributor

Been doing similar stuff for new wallet crypter, with more stuff mlocked, but looks good to me (once munlock()d)
edit: oh, I need to read, anyway, looks good to me.

@TheBlueMatt

Copy link
Copy Markdown
Contributor

Because I depend on this for the new encryption branch, I went ahead and did the munlock stuff, current version is at ee286b3ced9c80c12c369ccceb21ec287f24306b

@jgarzik

jgarzik commented Jul 13, 2011

Copy link
Copy Markdown
Contributor

superceded

@jgarzik jgarzik closed this Jul 13, 2011
dexX7 added a commit to dexX7/bitcoin that referenced this pull request Feb 12, 2016
0cf2358 Add omni_getmetadexhash() RPC call to hash state of MetaDEx (zathras-crypto)
ptschip pushed a commit to ptschip/bitcoin that referenced this pull request Mar 7, 2017
PV: fix two compiler warnings
classesjack pushed a commit to classesjack/bitcoin that referenced this pull request Jan 2, 2018
…shes-off-by-one

Added fix for issue with off by one block.blockhash()
rajarshimaitra pushed a commit to rajarshimaitra/bitcoin that referenced this pull request Aug 5, 2021
LND: typos, touch ups, English, etc.
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants