luigi1111
0a42fddde4
Merge pull request #5807
...
4b1df4e
Fix for biased signature nonce (SarangNoether)
5 years ago
luigi1111
8956e90c63
Merge pull request #5731
...
c393e82
CryptonightR_JIT: fix return value on error (selene-kovri)
5 years ago
Sarang Noether
4b1df4e50f
Fix for biased signature nonce
5 years ago
luigi1111
bb37e434fc
Merge pull request #5624
...
6b41bd8
Delete more include string.h (wepeng)
5 years ago
luigi1111
e3de4aa68b
Merge pull request #5502
...
25a7cfd
add a few checks where it seems appropriate (moneromooo-monero)
1a66a86
remove unused code (moneromooo-monero)
5 years ago
moneromooo-monero
c2238327d0
keccak: guard against misaligned memory accesses on ARM
...
The code generated is exactly the same as the direct access
one on x86_64
5 years ago
selene
c393e824d6
CryptonightR_JIT: fix return value on error
...
The value was positive rather than zero, but the caller only
checks for negative errors
5 years ago
moneromooo-monero
0564da5fdc
ensure no NULL is passed to memcpy
...
NULL is valid when size is 0, but memcpy uses nonnull attributes,
so let's not poke the bear
5 years ago
moneromooo-monero
a00cabd4f3
tree-hash: allocate variable memory on heap, not stack
...
Large amounts might run out of stack
Reported by guidov
5 years ago
Your Name
6b41bd8eb5
Delete more include string.h
5 years ago
moneromooo-monero
1a66a86f94
remove unused code
5 years ago
stoffu
a2195b9b7f
crypto: replace rand<T>()%N idiom with unbiased rand_idx(N)
5 years ago
Nathan Dorfman
9f49722c4d
Fix build on FreeBSD
5 years ago
Riccardo Spagni
6c0c7d796d
Merge pull request #5252
...
7ac33342
slow-hash: cache TLS references locally once at function start (moneromooo-monero)
5 years ago
Riccardo Spagni
39107e18d5
Merge pull request #5251
...
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)
5 years ago
Riccardo Spagni
56feda84d3
Merge pull request #5250
...
a48e49aa
aesb: avoid stomping on an existing define on NetBSD (moneromooo-monero)
5 years ago
Riccardo Spagni
f9b1c4f962
Merge pull request #5213
...
efb2bdd3
slow-hash: default to JIT on x86_64 (moneromooo-monero)
5 years ago
Riccardo Spagni
48e3a341f8
Merge pull request #5211
...
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)
5 years ago
moneromooo-monero
efb2bdd309
slow-hash: default to JIT on x86_64
5 years ago
Dusan Klinec
d74d26f2c9
crypto: hmac_keccak added
5 years ago
Riccardo Spagni
c3de019f56
Merge pull request #5192
...
d0e07b3d
performance_tests: fix NetBSD build (moneromooo-monero)
7d88d8f2
discontinue use of alloca (moneromooo-monero)
5 years ago
moneromooo-monero
7ac3334217
slow-hash: cache TLS references locally once at function start
5 years ago
moneromooo-monero
7632dede7b
crypto: fix PaX issue on NetBSD with CNv4 JIT
5 years ago
moneromooo-monero
a48e49aa36
aesb: avoid stomping on an existing define on NetBSD
5 years ago
binaryFate
1f2930ce0b
Update 2019 copyright
5 years ago
moneromooo-monero
108c625b3f
CryptonightR: define out i386/x86_64 specific code on other archs
5 years ago
moneromooo-monero
1b8757dddc
slow-hash: fix build on arm
5 years ago
moneromooo-monero
0de14396b9
tests: add a CNv4 JIT test
5 years ago
moneromooo-monero
24d281c324
crypto: plug CNv4 JIT into cn_slow_hash
...
Enabled by setting the MONERO_USE_CNV4_JIT env var to 1
5 years ago
moneromooo-monero
78ab59ea44
crypto: clear cache after generating random program
5 years ago
SChernykh
fff23bf7c6
CNv4 JIT compiler for x86-64 and tests
...
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
5 years ago
moneromooo-monero
7d88d8f27c
discontinue use of alloca
...
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++.
5 years ago
SChernykh
f1fb06b137
Fixed path to int-util.h
5 years ago
SChernykh
9da0892b10
Adding cnv4-2 tweaks
...
Co-Authored-By: Lee Clagett <vtnerd@users.noreply.github.com>
5 years ago
SChernykh
f51397b306
Cryptonight variant 4 aka CryptonightR
...
It introduces random integer math into the main loop.
5 years ago
moneromooo-monero
ec1a62b50d
move int-util.h to epee
6 years ago
Riccardo Spagni
c00ac446fd
Merge pull request #4854
...
bd98e99c
Removed a lot of unnecessary includes (Martijn Otto)
6 years ago
xiphon
2a48c2a286
slow-hash: some more big endian fixes
6 years ago
moneromooo-monero
b39fdf8ebe
slow-hash: fix for big endian
6 years ago
Martijn Otto
bd98e99c80
Removed a lot of unnecessary includes
6 years ago
Riccardo Spagni
92c5a892b5
Merge pull request #4757
...
db24a2e5
hash: fix hash_permutation on big endian (moneromooo-monero)
6 years ago
Riccardo Spagni
8ba3f89b44
Merge pull request #4755
...
42d8d508
crypto: fix AES encryption on big endian (xiphon)
6 years ago
Riccardo Spagni
267b5d8807
Merge pull request #4711
...
c4fbfd78
Small function declaration cleanup in slow-hash.c (Pol Mauri)
6 years ago
xiphon
42d8d5085e
crypto: fix AES encryption on big endian
6 years ago
moneromooo-monero
db24a2e509
hash: fix hash_permutation on big endian
6 years ago
xiphon
ba0faae789
crypto: fixed groestl on big-endian platforms
6 years ago
Pol Mauri
c4fbfd786a
Small function declaration cleanup in slow-hash.c
...
- These functions are declared twice in slow-hash.c. Remove one of the copies.
- The declarations have the wrong return type, should be void, not int.
Function definitions here: 1e74586ee9/src/crypto/aesb.c (L151-L180)
Test plan: make release-test
6 years ago
xiphon
ed36335c96
crypto: fixed incremental keccak API on big-endian platforms
6 years ago
Riccardo Spagni
2ec0d780c4
Merge pull request #4449
...
17142ec9
malloc scratchpad for all supported android archs (m2049r)
6 years ago
Riccardo Spagni
fb47963e09
Merge pull request #4404
...
f3cd51a1
cryptonote tweak v2.2 (Lee Clagett)
6 years ago