summaryrefslogtreecommitdiff
path: root/src/crypto
Commit message (Collapse)AuthorAgeFilesLines
* crypto: use malloc instead of allocamoneromooo-monero2017-08-231-10/+9
|
* crypto: moved boost::lock_guard into a smaller scopestoffu2017-06-221-4/+5
|
* Signature proving payment to destination by only revealing key derivation, ↵stoffu2017-06-222-0/+139
| | | | not the actual tx secret key
* Fix #1991 asm multiply againHoward Chu2017-06-081-16/+13
| | | | | Tweak temp variables and constraints. Was working before if not inlined but newer gcc tends to inline it.
* changed crypto to cncrypto so it generated libcncryptoGentian2017-05-231-3/+3
| | | | fix a cmakelist
* Clean up ARMv8-a aes_expand_key()hyc2017-04-121-24/+16
| | | | The inline asm was lying about its parameters
* IOS CMAKE build settingsJaquee2017-04-031-1/+1
|
* Silence warning about possibly uninitialized pointerGuillaume LE VAILLANT2017-03-251-1/+1
|
* Specify "524,288" iterations instead of "500,000"darentuzi2017-03-141-5/+5
| | | CryptoNight does exactly 524,288 iterations over the scratchpad as defined in CNS008, saying 500,000 could be confusing. I know its meant to give a rough idea (around 500k) to the reader but if you are reading the code, might as well know the exact number.
* update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-2131-31/+31
|
* Fix compiler error about nested externs in slow_hash.c by moving declarationsNanoAkron2017-02-131-3/+3
|
* Merge pull request #1510Riccardo Spagni2017-01-083-4/+24
|\ | | | | | | 80abc3bc Build wallet with Android NDK (MoroccanMalinois)
| * Build wallet with Android NDKMoroccanMalinois2017-01-053-4/+24
| |
* | cleaner log calc algorithmfireice-uk2016-12-221-20/+18
|/
* Preliminary support for DragonFly BSDAntonio Huete Jimenez2016-12-154-4/+6
| | | | - It builds but no further testing has been done.
* oaes_lib: fix a leak on OOM error pathmoneromooo-monero2016-12-101-0/+3
| | | | found by coverity
* wallet: fix output collision detection for view walletsmoneromooo-monero2016-11-071-1/+1
| | | | | | | | | | | | View wallets do not have the spend secret key, and are thus unable to derive key images for incoming outputs. Moreover, a previous patch set key images to zero as a means to mark an output as having an unknown key image, so they could be filled in when importing key images at a later time. That later patch caused spurious collisions. We now use public keys to detect duplicate outputs. Public keys obtained from the blockchain are checked to be identical to the ones derived locally, so can't be spoofed.
* Changed to ..._HASHBITS everywhere for consistencyNanoAkron2016-10-291-2/+2
|
* Dropped "bit" from bitmonero.Randi Joseph2016-09-261-2/+2
|
* cmake: transitive deps and remove deprecated LINK_*redfish2016-09-181-0/+5
| | | | | | | | | | | | | | Keep the immediate direct deps at the library that depends on them, declare deps as PUBLIC so that targets that link against that library get the library's deps as transitive deps. Break dep cycle between blockchain_db <-> crytonote_core. No code refactoring, just hide cycle from cmake so that it doesn't complain (cycles are allowed only between static libs, not shared libs). This is in preparation for supproting BUILD_SHARED_LIBS cmake built-in option for building internal libs as shared.
* crypto: armv7: slow-hash: remove redundant source includeredfish2016-09-181-1/+0
| | | | | aesb.c is already present in libcrypto as a standalone object. Tested: builds and runs fine on armv7, static and dynamic.
* Add ARMv8-A AES supportHoward Chu2016-09-161-42/+295
| | | | | | | More than twice as fast as plain C code. Note that both ARMv7 and ARMv8 can be further improved with better use of NEON. Also tweak ARMv7 multiplier
* crypto,cmake: enable ASM mul impl on ARM; add cmake optredfish2016-09-042-3/+13
| | | | | | This was disabled earlier as part of diagnosing failing tests on ARM, which turned out to be due to aliasing, fixed by adding -fno-strict-aliasing. So, re-enabling it back.
* rct amount key modified as per luigi1111's recommendationsmoneromooo-monero2016-08-282-1/+6
| | | | | | | | | This allows the key to be not the same for two outputs sent to the same address (eg, if you pay yourself, and also get change back). Also remove the key amounts lists and return parameters since we don't actually generate random ones, so we don't need to save them as we can recalculate them when needed if we have the correct keys.
* crypto: error out where appropriatemoneromooo-monero2016-08-281-2/+2
|
* ringct: import of Shen Noether's ring confidential transactionsmoneromooo-monero2016-08-285-13/+35
|
* Merge pull request #846Riccardo Spagni2016-06-193-13/+6
|\ | | | | | | | | | | | | | | | | | | de030d9 fix: error: -Werror=misleading-indentation (moneroexample) c2d7300 contrib: epee: add exception spec to throwing destructors (redfish) 6898741 src: p2p: add exception spec to throwing destructors (redfish) 21dbc95 crypto: slow-hash: fix misleading indent (redfish) 70f3634 crypto: slow-hash: remove unused hash list for ARM (redfish) 1a7772f crypto: oaes_lib: remove unused _NR array (redfish) 6462a3a crypto: fix compile error: use named type in sizeof (redfish)
| * crypto: slow-hash: fix misleading indentredfish2016-05-181-1/+1
| | | | | | | | GCC warned about this one.
| * crypto: slow-hash: remove unused hash list for ARMredfish2016-05-181-4/+0
| | | | | | | | | | This list is already defined within the function. The removed definition was shadowed.
| * crypto: oaes_lib: remove unused _NR arrayredfish2016-05-181-4/+0
| |
| * crypto: fix compile error: use named type in sizeofredfish2016-05-181-4/+5
| | | | | | | | | | | | | | Btw, the warning 4200 remains disabled, but it did not get triggered (GCC 6.1.1, ARM). But, perhaps a better way than disabling the warning would be to do what is suggested here: http://stackoverflow.com/questions/3350852/how-to-correctly-fix-zero-sized-array-in-struct-union-warning-c4200-without%3E
* | crypto: slow-hash: disable mul implemented in asm for ARMredfish2016-05-251-2/+5
|/ | | | | | The implementation of mul in asm breaks 'slow-hash' test when built with GCC 6.1.1. Disable this implementation in favor of plain C until it is fixed.
* crypto: make clear generate_random_bytes is not thread safemoneromooo-monero2016-05-154-4/+11
| | | | And add a thread safe version to encourage proper use
* random: call abort(3) instead of assert in must_succeed macromoneromooo-monero2016-04-241-1/+1
| | | | | | | Avoids silent use of bad RNG in release builds, in case those calls might actually fail. Reported by smooth.
* minor tweaks, add readme for crypto_ops_builderRiccardo Spagni2016-03-113-4/+25
|
* Use boost::thread instead of std::threadHoward Chu2016-03-112-10/+10
| | | | and all other associated IPC
* crypto: only check MONERO_USE_SOFTWARE_AES oncemoneromooo-monero2016-02-091-5/+15
|
* crypto: use software AES based on the MONERO_USE_SOFTWARE_AES env varmoneromooo-monero2016-02-091-1/+11
| | | | | | | Setting to no or 0 also works. If set, any other value enables it. Useful for running with valgrind in cases where it fails at properly implementing AES-NI.
* OpenBSD support for Monero.me0wmix2016-01-214-9/+9
|
* Fix arm asmHoward Chu2016-01-111-23/+63
| | | | About 10% faster than plain C mul128 on raspi1B
* updated copyright yearRiccardo Spagni2015-12-3130-30/+30
|
* Replace tabs with two spaces for consistency with rest of codebasewarptangent2015-12-152-161/+161
| | | | Remove trailing whitespace in same files.
* renamed folderRiccardo Spagni2015-10-26174-4830/+0
|
* Re-enable optimized slow-hash if someone is trying to compile w/MSVC ↵Javier Smooth2015-08-261-1/+1
| | | | (disabling it was unintentional)
* Merge pull request #385Riccardo Spagni2015-08-24174-0/+23117
|\ | | | | | | | | | | 0a4bc84 Added ref10 shen_ed25519_ref code, which includes code that can replace crypto-ops with a version straight from Bernstein's ref 10 (ShenNoether) 0d70fdc revert to 776b4fc91a821be152f0f23e6873aabb78a72029 (ShenNoether) b01f286 Added shen_ed25519_ref to crypto ops subfolder, the point is to directly have bitmonero's crypto code come from bernstein et al's ref 10 code (ShenNoether)
| * Added ref10 shen_ed25519_ref code, which includes code that can replace ↵ShenNoether2015-08-23174-0/+23117
| | | | | | | | crypto-ops with a version straight from Bernstein's ref 10
| * revert to 776b4fc91a821be152f0f23e6873aabb78a72029ShenNoether2015-08-231-0/+0
| |
| * Added shen_ed25519_ref to crypto ops subfolder, the point is to directly ↵ShenNoether2015-08-231-0/+0
| | | | | | | | have bitmonero's crypto code come from bernstein et al's ref 10 code
* | Merge pull request #383Riccardo Spagni2015-08-242-3/+2
|\ \ | | | | | | | | | | | | 3b5330e use correct unsigned type (roman) 59cc92b removed some gcc warnings. mainly unused variables. (roman)
| * | use correct unsigned typeroman2015-08-231-1/+2
| | |