aboutsummaryrefslogtreecommitdiff
path: root/tests/crypto
Commit message (Collapse)AuthorAgeFilesLines
* More tests for view tagsSChernykh2022-04-291-0/+14
| | | | P2Pool can create transactions with more than 128 outputs, which make output_index's varint larger than 1 byte. Added this test case.
* Add view tags to outputs to reduce wallet scanning timej-berman2022-04-182-1/+65
| | | | | | | | | | | | | Implements view tags as proposed by @UkoeHB in MRL issue https://github.com/monero-project/research-lab/issues/73 At tx construction, the sender adds a 1-byte view tag to each output. The view tag is derived from the sender-receiver shared secret. When scanning for outputs, the receiver can check the view tag for a match, in order to reduce scanning time. When the view tag does not match, the wallet avoids the more expensive EC operations when deriving the output public key using the shared secret.
* Copyright: Update to 2022mj-xmr2022-03-049-9/+9
|
* fix ge_p3_is_point_at_infinity(), which is evaluating field elements that ↵koe2022-01-254-0/+64
| | | | haven't been reduced by the field order
* crypto: fix non zero scalar being 0 after reducingmoneromooo-monero2020-12-041-551/+540
|
* Add RELINK_TARGETS, monero_add_target_no_relink and use ↵mj-xmr2020-10-281-2/+2
| | | | | | | | monero_add_executable/monero_add_library where possible (mj-xmr) Add monero_add_minimal_executable and use in tests This is done in order not to have to relink targets, when just an .so changed, but not its interface.
* Update copyright year to 2020SomaticFanatic2020-05-069-9/+9
| | | | Update copyright year to 2020
* Merge pull request #5240Riccardo Spagni2019-03-191-1/+0
|\ | | | | | | c8c154a2 tests: fix cnv4-jit-test link on mac (moneromooo-monero)
| * tests: fix cnv4-jit-test link on macmoneromooo-monero2019-03-061-1/+0
| |
* | Update 2019 copyrightbinaryFate2019-03-058-8/+8
|/
* tests: add a CNv4 JIT testmoneromooo-monero2019-03-042-0/+133
|
* Merge pull request #4489Riccardo Spagni2018-10-151-0/+3
|\ | | | | | | | | | | | | 00901e9c epee: initialize a few data members where it seems to be appropriate (moneromooo-monero) 144a6c32 abstract_tcp_server2: move m_period to subclass (moneromooo-monero) 758d7684 connection_basic: remove unused floating time start time (moneromooo-monero) e5108a29 Catch more exceptions in dtors (moneromooo-monero)
| * Catch more exceptions in dtorsmoneromooo-monero2018-10-021-0/+3
| | | | | | | | Misc coverity reports
* | tests: update crypto tests data file after PRNG changesmoneromooo-monero2018-10-071-562/+562
|/
* fixed cncrypto tests not passing after the change in random_scalarMaxim Shishmarev2018-08-071-1024/+1024
|
* crypto: revert odd namespace changes made in #3303stoffu2018-03-141-6/+6
|
* device: untangle cyclic depenencystoffu2018-03-141-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | When #3303 was merged, a cyclic dependency chain was generated: libdevice <- libcncrypto <- libringct <- libdevice This was because libdevice needs access to a set of basic crypto operations implemented in libringct such as scalarmultBase(), while libringct also needs access to abstracted crypto operations implemented in libdevice such as ecdhEncode(). To untangle this cyclic dependency chain, this patch splits libringct into libringct_basic and libringct, where the basic crypto ops previously in libringct are moved into libringct_basic. The cyclic dependency is now resolved thanks to this separation: libcncrypto <- libringct_basic <- libdevice <- libcryptonote_basic <- libringct This eliminates the need for crypto_device.cpp and rctOps_device.cpp. Also, many abstracted interfaces of hw::device such as encrypt_payment_id() and get_subaddress_secret_key() were previously implemented in libcryptonote_basic (cryptonote_format_utils.cpp) and were then called from hw::core::device_default, which is odd because libdevice is supposed to be independent of libcryptonote_basic. Therefore, those functions were moved to device_default.cpp.
* Code modifications to integrate Ledger HW device into monero-wallet-cli.cslashm2018-03-042-6/+9
| | | | | | | | | | | | | | | | | | | The basic approach it to delegate all sensitive data (master key, secret ephemeral key, key derivation, ....) and related operations to the device. As device has low memory, it does not keep itself the values (except for view/spend keys) but once computed there are encrypted (with AES are equivalent) and return back to monero-wallet-cli. When they need to be manipulated by the device, they are decrypted on receive. Moreover, using the client for storing the value in encrypted form limits the modification in the client code. Those values are transfered from one C-structure to another one as previously. The code modification has been done with the wishes to be open to any other hardware wallet. To achieve that a C++ class hw::Device has been introduced. Two initial implementations are provided: the "default", which remaps all calls to initial Monero code, and the "Ledger", which delegates all calls to Ledger device.
* Update 2018 copyrightxmr-eric2018-01-268-8/+8
|
* Scrub keys from memory just before scope end.moneromooo-monero2017-12-161-0/+1
| | | | | | | | | | | | Partially implements #74. Securely erases keys from memory after they are no longer needed. Might have a performance impact, which I haven't measured (perf measurements aren't generally reliable on laptops). Thanks to @stoffu for the suggestion to specialize the pod_to_hex/hex_to_pod functions. Using overloads + SFINAE instead generalizes it so other types can be marked as scrubbed without adding more boilerplate.
* Subaddresseskenshi842017-10-071-5/+1
|
* changed crypto to cncrypto so it generated libcncryptoGentian2017-05-231-5/+5
| | | | fix a cmakelist
* update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-218-8/+8
|
* cmake: transitive deps and remove deprecated LINK_*redfish2016-09-181-1/+3
| | | | | | | | | | | | | | 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.
* fixed "undefined reference" for boost::system libraryIlya Kitaev2016-03-161-1/+2
|
* updated copyright yearRiccardo Spagni2015-12-318-8/+8
|
* year updated in licenseRiccardo Spagni2015-01-028-8/+8
|
* cmake: put each test executable in its own directoryBen Boeckel2014-10-231-0/+50
|
* License updated to BSD 3-clausefluffypony2014-07-237-21/+203
|
* moved all stuff to githubAntonio Juarez2014-03-038-0/+5808