ringct: remove dead code

- h2b, b2h (rctTypes) and sumKeys (rctOps): from the original RingCT
  import (9b1afe5f2, 2016-05-13); never referenced by any caller since
  the import.
- cn_fast_hash128, hash_to_scalar128 (rctOps): from the same import.
  hash_to_scalar128 (and cn_fast_hash128 through it) was last used by
  the original MLSAG gen/ver hashing, which dbb5f2d6a (2016-07-09)
  replaced with keyV-based hash_to_scalar; dead since then.
- bos_coster_heap_conv (multiexp): added in 9ff6e6a0a (2018-01-09)
  alongside bos_coster_heap_conv_robust; multiexp() only ever
  dispatched the robust variant, so the non-robust one was never
  called. The robust variant is kept, as tests/performance_tests
  still uses it (production dispatch moved to Straus/Pippenger in
  939bc22/263431c).
This commit is contained in:
Thomas
2026-07-20 12:23:05 +02:00
parent 3ed8ffb56b
commit bf4615660b
6 changed files with 0 additions and 131 deletions
-28
View File
@@ -154,34 +154,6 @@ namespace rct {
return true;
}
//32 byte key to int[64]
void h2b(bits amountb2, const key & test) {
int val = 0, i = 0, j = 0;
for (j = 0; j < 8; j++) {
val = (unsigned char)test.bytes[j];
i = 0;
while (i < 8) {
amountb2[j*8+i++] = val & 1;
val >>= 1;
}
}
}
//int[64] to 32 byte key
void b2h(key & amountdh, const bits amountb2) {
int byte, i, j;
for (j = 0; j < 8; j++) {
byte = 0;
for (i = 7; i > -1; i--) {
byte = byte * 2 + amountb2[8 * j + i];
}
amountdh[j] = (unsigned char)byte;
}
for (j = 8; j < 32; j++) {
amountdh[j] = (unsigned char)(0x00);
}
}
//int[64] to uint long long
xmr_amount b2d(bits amountb) {
xmr_amount vali = 0;