7 ms·
Salsa20 could be replaced by almost anything -- the requirements for the mixing function are very very weak (basically just that there's no short-cut to iterati
by cperciva 13y ago
Salsa20 could be replaced by almost anything -- the requirements for the mixing function are very very weak (basically just that there's no short-cut to iterating). But Salsa20 has an advantage in throughput, which matters for maximizing the amount of memory you can use in a given amount of time.
Asymptotically speaking the best function there is the one which maximizes [B/s software output]^2 / [B/s hardware output].
- gburt 13y agoCan you elaborate a little on how you got to that maximization? I am not sure I understand why you're squaring the software level.
- cperciva 13y agoASIC cost ~ memory * time = (time_software * bandwidth_software) * (time_software * (bandwidth_software/bandwidth_hardware)) = (time_software)^2 * (bandwidth_software)^2 / bandwidth_hardware.
- fpgaminer 13y agoThank you for reply. Then I suppose re-using the SHA2 primitive doesn't make much sense, except perhaps in awkwardly constrained environments (area starved ASIC/FPGA, embedded processor with accelerated SHA, etc). Regardless, it's interesting to know that the mixing function can be swapped around.