Nick Coghlan <ncogh...@gmail.com> added the comment:

A comment above the length check referring back to this issue and the 
deliberate decision to allow a timing attack to determine the length of the 
expected digest would be handy.

I was just looking at hmac.secure_compare and my thought when reading the 
source and the docstring was "No, it's not time-independent, you can still use 
a timing attack to figure out the expected digest length".

----------
nosy: +ncoghlan

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14532>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to