Constant-time implementation

A constant-time implementation runs in time independent of secret data, the standard defense against timing and other side-channel attacks on cryptography.