aboutsummaryrefslogtreecommitdiff
path: root/src/crypto
Commit message (Collapse)AuthorAgeFilesLines
...
* RandomX integrationHoward Chu2019-09-255-7/+446
| | | | Support RandomX PoW algorithm
* Merge pull request #5877luigi11112019-09-241-3/+2
|\ | | | | | | | | | | 2cd4fd8 Changed the use of boost:value_initialized for C++ list initializer (JesusRami) 4ad191f Removed unused boost/value_init header (whyamiroot) 928f4be Make null hash constants constexpr (whyamiroot)
| * 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
| |
* | slow-hash: fix CNv2+ on big endianmoneromooo-monero2019-09-041-3/+3
|/
* Merge pull request #5609luigi11112019-08-274-2/+30
|\ | | | | | | 1dc3b1a wallet: add --extra-entropy command line flag (moneromooo-monero)
| * wallet: add --extra-entropy command line flagmoneromooo-monero2019-08-224-2/+30
| | | | | | | | | | | | It lets the user add custom entropy to the PRNG. It does this by hashing the new data and xoring the resulting hash with the PRNG state.
* | Merge pull request #5807luigi11112019-08-211-2/+0
|\ \ | | | | | | | | | 4b1df4e Fix for biased signature nonce (SarangNoether)
| * | Fix for biased signature nonceSarang Noether2019-08-121-2/+0
| |/
* | Merge pull request #5731luigi11112019-08-211-3/+3
|\ \ | |/ |/| | | c393e82 CryptonightR_JIT: fix return value on error (selene-kovri)
| * CryptonightR_JIT: fix return value on errorselene2019-07-041-3/+3
| | | | | | | | | | The value was positive rather than zero, but the caller only checks for negative errors
* | Merge pull request #5624luigi11112019-07-241-1/+0
|\ \ | | | | | | | | | 6b41bd8 Delete more include string.h (wepeng)
| * | Delete more include string.hYour Name2019-06-111-1/+0
| | |
* | | Merge pull request #5502luigi11112019-07-241-1/+0
|\ \ \ | | | | | | | | | | | | | | | | 25a7cfd add a few checks where it seems appropriate (moneromooo-monero) 1a66a86 remove unused code (moneromooo-monero)
| * | | remove unused codemoneromooo-monero2019-04-291-1/+0
| |/ /
* | / keccak: guard against misaligned memory accesses on ARMmoneromooo-monero2019-07-041-3/+6
| |/ |/| | | | | | | The code generated is exactly the same as the direct access one on x86_64
* | ensure no NULL is passed to memcpymoneromooo-monero2019-06-141-1/+2
| | | | | | | | | | NULL is valid when size is 0, but memcpy uses nonnull attributes, so let's not poke the bear
* | tree-hash: allocate variable memory on heap, not stackmoneromooo-monero2019-06-141-5/+7
|/ | | | | | Large amounts might run out of stack Reported by guidov
* crypto: replace rand<T>()%N idiom with unbiased rand_idx(N)stoffu2019-04-041-0/+27
|
* Fix build on FreeBSDNathan Dorfman2019-03-241-1/+1
|
* Merge pull request #5252Riccardo Spagni2019-03-211-27/+31
|\ | | | | | | 7ac33342 slow-hash: cache TLS references locally once at function start (moneromooo-monero)
| * slow-hash: cache TLS references locally once at function startmoneromooo-monero2019-03-071-27/+31
| |
* | Merge pull request #5251Riccardo Spagni2019-03-212-9/+24
|\ \ | | | | | | | | | | | | | | | 7632dede crypto: fix PaX issue on NetBSD with CNv4 JIT (moneromooo-monero) 89b1630e gtest: build fix for NetBSD (moneromooo-monero) fa43b547 tests: handle any cmake detected python interpreter (moneromooo-monero)
| * | crypto: fix PaX issue on NetBSD with CNv4 JITmoneromooo-monero2019-03-072-9/+24
| |/
* | Merge pull request #5250Riccardo Spagni2019-03-211-4/+4
|\ \ | | | | | | | | | a48e49aa aesb: avoid stomping on an existing define on NetBSD (moneromooo-monero)
| * | aesb: avoid stomping on an existing define on NetBSDmoneromooo-monero2019-03-071-4/+4
| |/
* | Merge pull request #5213Riccardo Spagni2019-03-211-1/+1
|\ \ | | | | | | | | | efb2bdd3 slow-hash: default to JIT on x86_64 (moneromooo-monero)
| * | slow-hash: default to JIT on x86_64moneromooo-monero2019-03-211-1/+1
| | |
* | | Merge pull request #5211Riccardo Spagni2019-03-213-0/+142
|\ \ \ | |/ / |/| | | | | | | | | | | c9b13fbb tests/trezor: HF9 and HF10 tests (Dusan Klinec) a1fd1d49 device/trezor: HF10 support added, wallet::API (Dusan Klinec) d74d26f2 crypto: hmac_keccak added (Dusan Klinec)
| * | crypto: hmac_keccak addedDusan Klinec2019-03-203-0/+142
| |/
* | Merge pull request #5192Riccardo Spagni2019-03-171-12/+2
|\ \ | | | | | | | | | | | | d0e07b3d performance_tests: fix NetBSD build (moneromooo-monero) 7d88d8f2 discontinue use of alloca (moneromooo-monero)
| * | discontinue use of allocamoneromooo-monero2019-02-251-12/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NetBSD emits: warning: Warning: reference to the libc supplied alloca(3); this most likely will not work. Please use the compiler provided version of alloca(3), by supplying the appropriate compiler flags (e.g. not -std=c89). and man 3 alloca says: Normally, gcc(1) translates calls to alloca() with inlined code. This is not done when either the -ansi, -std=c89, -std=c99, or the -std=c11 option is given and the header <alloca.h> is not included. Otherwise, (without an -ansi or -std=c* option) the glibc version of <stdlib.h> includes <alloca.h> and that contains the lines: #ifdef __GNUC__ #define alloca(size) __builtin_alloca (size) #endif It looks like alloca is a bad idea in modern C/C++, so we use VLAs for C and std::vector for C++.
* | | Update 2019 copyrightbinaryFate2019-03-0531-31/+31
| |/ |/|
* | CryptonightR: define out i386/x86_64 specific code on other archsmoneromooo-monero2019-03-052-0/+8
| |
* | slow-hash: fix build on armmoneromooo-monero2019-03-054-27/+42
| |
* | tests: add a CNv4 JIT testmoneromooo-monero2019-03-041-7/+8
| |
* | crypto: plug CNv4 JIT into cn_slow_hashmoneromooo-monero2019-03-042-3/+100
| | | | | | | | Enabled by setting the MONERO_USE_CNV4_JIT env var to 1
* | crypto: clear cache after generating random programmoneromooo-monero2019-03-041-0/+3
| |
* | CNv4 JIT compiler for x86-64 and testsSChernykh2019-03-044-0/+2746
| | | | | | | | | | | | | | | | | | Minimalistic JIT code generator for random math sequence in CryptonightR. Usage: - Allocate writable and executable memory - Call v4_generate_JIT_code with "buf" pointed to memory allocated on the previous step - Call the generated code instead of "v4_random_math(code, r)", omit the "code" parameter
* | Fixed path to int-util.hSChernykh2019-02-141-1/+1
| |
* | Adding cnv4-2 tweaksSChernykh2019-02-142-39/+79
| | | | | | | | Co-Authored-By: Lee Clagett <vtnerd@users.noreply.github.com>
* | Cryptonight variant 4 aka CryptonightRSChernykh2019-02-145-16/+507
|/ | | | It introduces random integer math into the main loop.
* move int-util.h to epeemoneromooo-monero2018-12-047-7/+7
|
* Merge pull request #4854Riccardo Spagni2018-12-042-4/+0
|\ | | | | | | bd98e99c Removed a lot of unnecessary includes (Martijn Otto)
| * Removed a lot of unnecessary includesMartijn Otto2018-11-152-4/+0
| |
* | slow-hash: some more big endian fixesxiphon2018-11-161-6/+6
| |
* | slow-hash: fix for big endianmoneromooo-monero2018-11-161-20/+21
| |
* | Merge pull request #4757Riccardo Spagni2018-11-141-0/+7
|\ \ | | | | | | | | | db24a2e5 hash: fix hash_permutation on big endian (moneromooo-monero)
| * | hash: fix hash_permutation on big endianmoneromooo-monero2018-10-291-0/+7
| | |