diff options
author | Sarang Noether <32460187+SarangNoether@users.noreply.github.com> | 2020-04-01 08:31:00 -0400 |
---|---|---|
committer | Sarang Noether <32460187+SarangNoether@users.noreply.github.com> | 2020-04-01 08:31:00 -0400 |
commit | 80d5320fff9c948f54b4379f3c2f3bc684e7f356 (patch) | |
tree | be950820fe376cd19e8a5349680f24ffb62adb36 /src/ringct/bulletproofs.cc | |
parent | Merge pull request #6336 (diff) | |
download | monero-80d5320fff9c948f54b4379f3c2f3bc684e7f356.tar.xz |
Hash domain separation
Diffstat (limited to '')
-rw-r--r-- | src/ringct/bulletproofs.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ringct/bulletproofs.cc b/src/ringct/bulletproofs.cc index 80ecc5593..c129e7886 100644 --- a/src/ringct/bulletproofs.cc +++ b/src/ringct/bulletproofs.cc @@ -100,8 +100,8 @@ static inline bool is_reduced(const rct::key &scalar) static rct::key get_exponent(const rct::key &base, size_t idx) { - static const std::string salt("bulletproof"); - std::string hashed = std::string((const char*)base.bytes, sizeof(base)) + salt + tools::get_varint_data(idx); + static const std::string domain_separator(config::HASH_KEY_BULLETPROOF_EXPONENT); + std::string hashed = std::string((const char*)base.bytes, sizeof(base)) + domain_separator + tools::get_varint_data(idx); rct::key e; ge_p3 e_p3; rct::hash_to_p3(e_p3, rct::hash2rct(crypto::cn_fast_hash(hashed.data(), hashed.size()))); |