I know that the wallet keys file contains an encrypted version of your private keys, but am just curious what encryption algorithm is used to do this, and also where is it done in the source code?
Asked
Active
Viewed 1,064 times
1 Answers
10
- ChaCha8; the key derivation is done with CryptoNight.
- https://github.com/monero-project/monero/blob/e06530e2d97a0a44f1f954b0d9a49e522e2ca74a/src/wallet/wallet2.cpp#L1362
Specifically note L1429 which calls https://github.com/monero-project/monero/blob/e06530e2d97a0a44f1f954b0d9a49e522e2ca74a/src/crypto/chacha8.c#L43

Luigi
- 2,462
- 11
- 14
-
ChaCha8 itself is defined here http://cr.yp.to/chacha/chacha-20080128.pdf – hyc Sep 22 '16 at 17:06