diff options
| author | Riccardo Spagni <ric@spagni.net> | 2018-03-04 19:03:41 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2018-03-04 19:03:41 +0200 |
| commit | c7ace5fa3d412410312e21c55c28068dcd625fef (patch) | |
| tree | fba40dea29a948b8a4904b4de189d4adc605ec6e /tests/crypto/crypto.cpp | |
| parent | 421ab3119ce8ccbf73ad12d736d3daa897fa0347 (diff) | |
| parent | e745c1e38da8e54032660894bb2db0e9a49cccf2 (diff) | |
| download | monzero-core-c7ace5fa3d412410312e21c55c28068dcd625fef.tar.gz monzero-core-c7ace5fa3d412410312e21c55c28068dcd625fef.tar.xz monzero-core-c7ace5fa3d412410312e21c55c28068dcd625fef.zip | |
Merge pull request #3303
e745c1e3 Code modifications to integrate Ledger HW device into monero-wallet-cli. (cslashm)
Diffstat (limited to 'tests/crypto/crypto.cpp')
| -rw-r--r-- | tests/crypto/crypto.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/crypto/crypto.cpp b/tests/crypto/crypto.cpp index 6a1dd1b29..90212bd0b 100644 --- a/tests/crypto/crypto.cpp +++ b/tests/crypto/crypto.cpp @@ -33,7 +33,7 @@ #include "crypto-tests.h" bool check_scalar(const crypto::ec_scalar &scalar) { - return crypto::sc_check(crypto::operator &(scalar)) == 0; + return sc_check(crypto::operator &(scalar)) == 0; } void random_scalar(crypto::ec_scalar &res) { @@ -45,13 +45,13 @@ void hash_to_scalar(const void *data, std::size_t length, crypto::ec_scalar &res } void hash_to_point(const crypto::hash &h, crypto::ec_point &res) { - crypto::ge_p2 point; - crypto::ge_fromfe_frombytes_vartime(&point, reinterpret_cast<const unsigned char *>(&h)); - crypto::ge_tobytes(crypto::operator &(res), &point); + ge_p2 point; + ge_fromfe_frombytes_vartime(&point, reinterpret_cast<const unsigned char *>(&h)); + ge_tobytes(crypto::operator &(res), &point); } void hash_to_ec(const crypto::public_key &key, crypto::ec_point &res) { - crypto::ge_p3 tmp; + ge_p3 tmp; crypto::hash_to_ec(key, tmp); - crypto::ge_p3_tobytes(crypto::operator &(res), &tmp); + ge_p3_tobytes(crypto::operator &(res), &tmp); } |
