3 ms·
I think this would have been a much smarter way to code it! Default slow and safe, require an added flag for more performance. That would make it much harder to
by zaroth 10y ago
I think this would have been a much smarter way to code it! Default slow and safe, require an added flag for more performance. That would make it much harder to end up on the timing-sensitive / high performance implementation by mistake.
Probably the trap was since the constant-time algorithm was the new code, "backward compatibility" would suggest adding a flag to select the new algorithm.