aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/crypter.h
Commit message (Collapse)AuthorAgeFilesLines
* 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