Constant-time operations for rust cryptography