April 15, 2016
2:35 a.m.
2016-04-15 11:21 GMT+02:00 Steven D'Aprano <steve@pearwood.info>:
This isn't just a question about the secrets module. PEP 399 suggests than any C classes/functions should have a pure Python version as fallback, but compare_digest doesn't. I don't know whether it should or not.
The hmac module is responsible to providing a fallback, not the secrets module. Victor