diff options
| author | Cory Fields <[email protected]> | 2015-03-26 17:37:29 -0400 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-05-13 10:23:04 +0200 |
| commit | fb96831c1ff767cd86099f66127fa4dc1ec6e277 (patch) | |
| tree | ccd4d39752e118650a065401440e98bd09bf9a62 /src/wallet/crypter.h | |
| parent | crypter: fix the stored initialization vector size (diff) | |
| download | discoin-fb96831c1ff767cd86099f66127fa4dc1ec6e277.tar.xz discoin-fb96831c1ff767cd86099f66127fa4dc1ec6e277.zip | |
crypter: constify encrypt/decrypt
This makes CCrypter easier to pass aroundf for tests
Diffstat (limited to 'src/wallet/crypter.h')
| -rw-r--r-- | src/wallet/crypter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/crypter.h b/src/wallet/crypter.h index b4727ac8a..3457d40ff 100644 --- a/src/wallet/crypter.h +++ b/src/wallet/crypter.h @@ -77,8 +77,8 @@ private: public: bool SetKeyFromPassphrase(const SecureString &strKeyData, const std::vector<unsigned char>& chSalt, const unsigned int nRounds, const unsigned int nDerivationMethod); - bool Encrypt(const CKeyingMaterial& vchPlaintext, std::vector<unsigned char> &vchCiphertext); - bool Decrypt(const std::vector<unsigned char>& vchCiphertext, CKeyingMaterial& vchPlaintext); + bool Encrypt(const CKeyingMaterial& vchPlaintext, std::vector<unsigned char> &vchCiphertext) const; + bool Decrypt(const std::vector<unsigned char>& vchCiphertext, CKeyingMaterial& vchPlaintext) const; bool SetKey(const CKeyingMaterial& chNewKey, const std::vector<unsigned char>& chNewIV); void CleanKey() |