Use the stdlib's compare_digest for constant time comparisons when available
Merge pull request #2600 from alex/builtin-constant-time-compare

Use the stdlib's compare_digest for constant time comparisons when available