diff options
author | koe <ukoe@protonmail.com> | 2022-12-01 17:53:17 -0600 |
---|---|---|
committer | koe <ukoe@protonmail.com> | 2023-01-03 16:50:08 -0600 |
commit | b1bce857c90ee06110e38dfaf78df4b1d20f2b90 (patch) | |
tree | 1c154045b39e4c6fe6efd2ce89d75a960a45e956 /src/ringct/rctOps.cpp | |
parent | Merge pull request #8635 (diff) | |
download | monero-b1bce857c90ee06110e38dfaf78df4b1d20f2b90.tar.xz |
miscellaneous crypto updates
Diffstat (limited to 'src/ringct/rctOps.cpp')
-rw-r--r-- | src/ringct/rctOps.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ringct/rctOps.cpp b/src/ringct/rctOps.cpp index 245a3f477..5b039d907 100644 --- a/src/ringct/rctOps.cpp +++ b/src/ringct/rctOps.cpp @@ -671,7 +671,7 @@ namespace rct { //Elliptic Curve Diffie Helman: encodes and decodes the amount b and mask a // where C= aG + bH - static key ecdhHash(const key &k) + key genAmountEncodingFactor(const key &k) { char data[38]; rct::key hash; @@ -700,7 +700,7 @@ namespace rct { if (v2) { unmasked.mask = zero(); - xor8(unmasked.amount, ecdhHash(sharedSec)); + xor8(unmasked.amount, genAmountEncodingFactor(sharedSec)); } else { @@ -715,7 +715,7 @@ namespace rct { if (v2) { masked.mask = genCommitmentMask(sharedSec); - xor8(masked.amount, ecdhHash(sharedSec)); + xor8(masked.amount, genAmountEncodingFactor(sharedSec)); } else { |