Jon Oberheide <j...@oberheide.org> added the comment:

> You could rewrite:
> 
>     result |= x ^ y
> 
> as:
> 
>     result |= (x != y)
You could, but it's best not to introduce any conditional branching based if at 
all possible. For reference, see:

http://rdist.root.org/2009/05/28/timing-attack-in-google-keyczar-library/#comment-5783

----------

_______________________________________
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