backport hmac.compare_digest to partially implement PEP 466 (closes #21306)

Backport from Alex Gaynor.
5 files changed