monero/tests/crypto
stoffu 27a196b126
device: untangle cyclic depenency
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.
2018-03-14 21:00:15 +09:00
..
CMakeLists.txt device: untangle cyclic depenency 2018-03-14 21:00:15 +09:00
crypto-ops-data.c Update 2018 copyright 2018-01-26 10:03:20 -05:00
crypto-ops.c Update 2018 copyright 2018-01-26 10:03:20 -05:00
crypto-tests.h Update 2018 copyright 2018-01-26 10:03:20 -05:00
crypto.cpp Code modifications to integrate Ledger HW device into monero-wallet-cli. 2018-03-04 12:54:53 +01:00
hash.c Update 2018 copyright 2018-01-26 10:03:20 -05:00
main.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
random.c Update 2018 copyright 2018-01-26 10:03:20 -05:00
tests.txt moved all stuff to github 2014-03-03 22:07:58 +00:00