aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/crypter.h
Commit message (Collapse)AuthorAgeFilesLines
* [tools] Add wallet inspection and modification toolJonas Schnelli2019-01-301-1/+1
| | | | | | | | | | | This commit adds wallet-tool, a tool for creating and interacting with wallet files. Original implementation was by Jonas Schnelli <[email protected]> with modifications by John Newbery <[email protected]> MSVC files were provided by Chun Kuan Lee <[email protected]>: build: Add MSVC project files for bitcoin-wallet-tool
* Update copyright headers to 2018DrahtBot2018-07-271-1/+1
|
* Refactors `keystore.h` type aliases.2512018-07-121-0/+2
| | | | | | This squashed commit either encapsulates type alias declarations at the appropriate scope; or removes type aliases that are not used. The encapsulated type aliases are declared using C++11's `using` notation in favor of the `typedef` notation.
* Add locking annotations for variables guarded by cs_KeyStorepracticalswift2018-04-291-2/+2
|
* tests: Avoid test suite name collision in wallet crypto_testsMarcoFalke2018-04-061-2/+2
|
* tests: Rename test suits not following the test suite naming conventionpracticalswift2018-03-191-2/+2
| | | | | The name of the fixture test suite in `src/test/foo_tests.cpp` should be `foo_tests`.
* Increment MIT Licence copyright header year on files modified in 2017Akira Takizawa2018-01-031-1/+1
|
* scripted-diff: Replace #include "" with #include <> (ryanofsky)MeshCollider2017-11-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -BEGIN VERIFY SCRIPT- for f in \ src/*.cpp \ src/*.h \ src/bench/*.cpp \ src/bench/*.h \ src/compat/*.cpp \ src/compat/*.h \ src/consensus/*.cpp \ src/consensus/*.h \ src/crypto/*.cpp \ src/crypto/*.h \ src/crypto/ctaes/*.h \ src/policy/*.cpp \ src/policy/*.h \ src/primitives/*.cpp \ src/primitives/*.h \ src/qt/*.cpp \ src/qt/*.h \ src/qt/test/*.cpp \ src/qt/test/*.h \ src/rpc/*.cpp \ src/rpc/*.h \ src/script/*.cpp \ src/script/*.h \ src/support/*.cpp \ src/support/*.h \ src/support/allocators/*.h \ src/test/*.cpp \ src/test/*.h \ src/wallet/*.cpp \ src/wallet/*.h \ src/wallet/test/*.cpp \ src/wallet/test/*.h \ src/zmq/*.cpp \ src/zmq/*.h do base=${f%/*}/ relbase=${base#src/} sed -i "s:#include \"\(.*\)\"\(.*\):if test -e \$base'\\1'; then echo \"#include <\"\$relbase\"\\1>\\2\"; else echo \"#include <\\1>\\2\"; fi:e" $f done -END VERIFY SCRIPT-
* Merge #11272: CKeystore/CCrypter: move relevant implementation out of the headerWladimir J. van der Laan2017-11-091-40/+4
|\ | | | | | | | | | | | | | | | | | | dd9bb25 Fix code style in keystore.cpp/crypter.cpp (Jonas Schnelli) 208fda6 CCrypter: move relevant implementation out of the header (Jonas Schnelli) 3155fd2 CKeystore: move relevant implementation out of the header (Jonas Schnelli) Pull request description: Tree-SHA512: 4ce73cca5609199b74b8ff2614ee2b6af949545a1332a3a0135c6453c98665d2b0da171c1e390c9a2aec6b12b7fad931ec90084bb7c2defe243786bfc70daf60
| * CCrypter: move relevant implementation out of the headerJonas Schnelli2017-10-041-40/+4
| |
* | Merge #11107: Fix races in AppInitMain and others with lock and atomic boolsMarcoFalke2017-10-051-1/+3
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | c626dcb50 Make fUseCrypto atomic (MeshCollider) 731065b11 Consistent parameter names in txdb.h (MeshCollider) 35aeabec6 Make fReindex atomic to avoid race (MeshCollider) 58d91af59 Fix race for mapBlockIndex in AppInitMain (MeshCollider) Pull request description: Fixes https://github.com/bitcoin/bitcoin/issues/11106 Also makes fReindex atomic as suggested in @TheBlueMatt comment below, and makes fUseCrypto atomic as suggested in 10916 https://github.com/bitcoin/bitcoin/pull/11107/commits/d291e7635b0ef4156c2805c6c4ee1adad91f0307 just renames the parameters in the txdb header file to make them consistent with those used in the cpp file, noticed it when looking for uses of fReindex Tree-SHA512: b378aa7289fd505b76565cd4d48dcdc04ac5540283ea1c80442170b0f13cb6df771b1a94dd54b7fec3478a7b4668c224ec9d795f16937782724c5d020edd3a42
| * Make fUseCrypto atomicMeshCollider2017-09-101-1/+3
| |
* | Merge #10916: add missing lock to crypter GetKeys()Wladimir J. van der Laan2017-09-071-14/+12
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | fe09b0197 add missing lock to crypter GetKeys() (Marko Bencun) 5cb3da04b keystore GetKeys(): return result instead of writing to reference (Marko Bencun) Pull request description: Issue: #10905 First commit makes GetKeys() return the result instead of writing to a reference to remove some useless lines. Tree-SHA512: bb51255b5a6cf5488c3d5dee89f539d41f0717f018441d120047f877e0a705a133fb3b7a97d1cf8f73b5d2ed93dd2dbdfcd6f394e40105af2a12e01d397cb402
| * add missing lock to crypter GetKeys()Marko Bencun2017-07-231-0/+1
| | | | | | | | Issue: #10905
| * keystore GetKeys(): return result instead of writing to referenceMarko Bencun2017-07-231-14/+11
| | | | | | | | | | | | | | | | Issue: #10905 By returning the result, a few useless lines can be removed. Return-value-optimization means there should be no copy.
* | Remove vchDefaultKey and have better first run detectionAndrew Chow2017-08-151-1/+1
|/ | | | | | | | | | | | Removes vchDefaultKey which was only used for first run detection. Improves wallet first run detection by checking to see if any keys were read from the database. This will now also check for a valid defaultkey for backwards compatibility reasons and to check for any corruption. Keys will stil be generated on the first one, but there won't be any shown in the address book as was previously done.
* Use the override specifier (C++11) where we expect to be overriding the ↵practicalswift2017-06-281-5/+5
| | | | virtual function of a base class
* Remove unnecessary forward class declarations in header filespracticalswift2017-06-121-2/+0
|
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Get rid of nType and nVersionPieter Wuille2016-11-071-1/+1
| | | | | | | | | | | Remove the nType and nVersion as parameters to all serialization methods and functions. There is only one place where it's read and has an impact (in CAddress), and even there it does not impact any of the recursively invoked serializers. Instead, the few places that need nType or nVersion are changed to read it directly from the stream object, through GetType() and GetVersion() methods which are added to all stream classes.
* wallet: Change CCrypter to use vectors with secure allocatorWladimir J. van der Laan2016-10-191-13/+6
| | | | | | | Change CCrypter to use vectors with secure allocator instead of buffers on in the object itself which will end up on the stack. This avoids having to call LockedPageManager to lock stack memory pages to prevent the memory from being swapped to disk. This is wasteful.
* crypter: add tests for crypterCory Fields2016-05-131-0/+6
| | | | | | | Verify that results correct (match known values), consistent (encrypt->decrypt matches the original), and compatible with the previous openssl implementation. Also check that failed encrypts/decrypts fail the exact same way as openssl.
* crypter: add a BytesToKey clone to replace the use of opensslCory Fields2016-05-131-0/+2
| | | | | BytesToKeySHA512AES should be functionally identical to EVP_BytesToKey, but drops the dependency on openssl.
* crypter: constify encrypt/decryptCory Fields2016-05-131-2/+2
| | | | This makes CCrypter easier to pass aroundf for tests
* crypter: fix the stored initialization vector sizeCory Fields2016-05-131-1/+2
| | | | | | AES IV's are 16bytes, not 32. This was harmless but confusing. Add WALLET_CRYPTO_IV_SIZE to make its usage explicit.
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* ensure consistent header comment naming conventionsPhilip Kaufmann2015-04-201-3/+3
| | | | - BITCOIN_FOLDER_SUBFOLDER_FILENAME_H
* wallet: move crypter to walletCory Fields2015-03-221-0/+196