aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/hash.h
Commit message (Collapse)AuthorAgeFilesLines
* tx_memory_pool: speedup get_complement() for large requestsjeffro2562026-03-211-0/+3
| | | | | | | Changes complexity from M*N to (2*N+M)*log2(M). The FCMP++ stressnet recently hit mempool sizes of ~55k txs. If the requesting node's mempool is populated, this results in an average of (55000*55000)/2 (about 1.5 billion) comparisons for the responding node. Under this commit, this would be reduced to (55000+55000)*log2(55000) comparisons (about 2.6 million), a 99.83% reduction.
* crypto: check+throw for Cryptonight v1 invalid inputjeffro2562025-07-111-1/+11
| | | | | | | If `crypto::cn_slow_hash()` is called with `variant=1` and an input length of less thab 43 bytes, it triggers a program exit. This checks first and throws an exception instead. Thank you to ADA Logics and the MAGIC Monero Fund for reporting this!
* Copyright: Update to 2022mj-xmr2022-03-041-1/+1
|
* Update copyright year to 2020SomaticFanatic2020-05-061-1/+1
| | | | Update copyright year to 2020
* Make null hash constants constexprLev Sizov2019-09-051-2/+2
| | | | Simplify m_template initialization in miner
* Removed unused boost/value_init headerLev Sizov2019-09-021-1/+0
|
* Changed the use of boost:value_initialized for C++ list initializerJesus Ramirez2019-09-021-2/+2
|
* Update 2019 copyrightbinaryFate2019-03-051-1/+1
|
* Cryptonight variant 4 aka CryptonightRSChernykh2019-02-141-4/+4
| | | | It introduces random integer math into the main loop.
* chacha: call prehashed version explicitly as generate_chacha_key_prehashedstoffu2018-03-141-1/+5
| | | | | | hash: add prehashed version cn_slow_hash_prehashed slow-hash: let cn_slow_hash take 4th parameter for deciding prehashed or not slow-hash: add support for prehashed version for the other 3 platforms
* Monero Cryptonight variants, and add one for v7moneromooo-monero2018-03-051-2/+2
| | | | | This is the first variant of many, with the intent to improve Monero's resistance to ASICs and encourage mining decentralization.
* Update 2018 copyrightxmr-eric2018-01-261-1/+1
|
* move checkpoints in a separate librarymoneromooo-monero2017-09-251-0/+13
|
* update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-211-1/+1
|
* updated copyright yearRiccardo Spagni2015-12-311-1/+1
|
* encrypted payment ids are now 64 bit, instead of 256 bitmoneromooo-monero2015-08-091-0/+5
| | | | | | | | | | | | | | Pros: - smaller on the blockchain - shorter integrated addresses Cons: - less sparseness - less ability to embed actual information The boolean argument to encrypt payment ids is now gone from the RPC calls, since the decision is made based on the length of the payment id passed.
* year updated in licenseRiccardo Spagni2015-01-021-1/+1
|
* License updated to BSD 3-clausefluffypony2014-07-231-3/+29
|
* moved all stuff to githubAntonio Juarez2014-03-031-29/+39
|
* crypto libamjuarez2013-11-151-0/+40