News for hackers. Stuff that matters.
Re:Fast constant-time GCD algorithm and modular inversion by hannob on Thursday June 13, 2019 @04:08AM (#20172693)
> It seems "constant-time" isn't used to mean "the time taken is O(1) regardless of the size of the input n", but rather, "for a given input size, the algorithm is carefully written to do the same amount of work no matter what the specific bits of the input are, to defeat timing attacks".

This seems very obvious to me. "Constant" independent of the input size seems literally impossible for any nontrivial algorithm. At the very least you need to somehow read in all the input, and that's already input-size dependent.

There are no comments on this comment yet.