This has DJN's proposed replacement for toConstantTime