diff options
author | Daniel Kraft <d@domob.eu> | 2014-12-04 21:37:26 +0100 |
---|---|---|
committer | Daniel Kraft <d@domob.eu> | 2014-12-04 21:37:26 +0100 |
commit | 35f7227a860b2b8c273e4bb299e6bd67cfef9a3f (patch) | |
tree | 606ff65ecff04f12f0c4c72f274f7f5a5dc22621 /src/crypter.h | |
parent | 9ddc8c63ab72a6951f0c4f636b3252a43193a45b (diff) |
Clean up wallet encryption code.
Add a new method DecryptKey in crypter.cpp, that combines the logic for
decrypting, initialising and validating a CKey object. This was
previously duplicated.
Diffstat (limited to 'src/crypter.h')
-rw-r--r-- | src/crypter.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/crypter.h b/src/crypter.h index f7018cfdbe..656658b0fe 100644 --- a/src/crypter.h +++ b/src/crypter.h @@ -107,9 +107,6 @@ public: } }; -bool EncryptSecret(const CKeyingMaterial& vMasterKey, const CKeyingMaterial &vchPlaintext, const uint256& nIV, std::vector<unsigned char> &vchCiphertext); -bool DecryptSecret(const CKeyingMaterial& vMasterKey, const std::vector<unsigned char>& vchCiphertext, const uint256& nIV, CKeyingMaterial& vchPlaintext); - /** Keystore which keeps the private keys encrypted. * It derives from the basic key store, which is used if no encryption is active. */ |