user136282: What is the correlation between ckey, mkey and a private key in bitcoin?
How can I retrieve my lost private key from ckey and mkey?

user48884: ckey is an encrypted private key. mkey is an encryption key for ckeys that is encrypted using your passphrase.
This answer describes the format of mkey records.
ckey have a key of the string ckey followed by the public key. The value contains the encrypted private key followed by the checksum which is the SHA256 of the encrypted private key. The encrypted private key is 32 bytes. It is AES-256-CBC encrypted, with an IV of the first 16 bytes of the SHA256 of the public key.

136282: <p>What is the correlation between <code>ckey</code>, <code>mkey</code> and a private key in bitcoin?
How can I retrieve my lost private key from <code>ckey</code> and <code>mkey</code>?</p>
 48884: <p><code>ckey</code> is an encrypted private key. <code>mkey</code> is an encryption key for <code>ckey</code>s that is encrypted using your passphrase.</p>
<p>This <a href="https://bitcoin.stackexchange.com/a/111318/48884">answer</a> describes the format of <code>mkey</code> records.</p>
<p><code>ckey</code> have a key of the string <code>ckey</code> followed by the public key. The value contains the encrypted private key followed by the checksum which is the SHA256 of the encrypted private key. The encrypted private key is 32 bytes. It is AES-256-CBC encrypted, with an IV of the first 16 bytes of the SHA256 of the public key.</p>
