]> granicus.if.org Git - python/commit
[Patch #1618455 by Ben Maurer] Improve speed of HMAC by using str.translate()
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 19 Dec 2006 14:13:05 +0000 (14:13 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 19 Dec 2006 14:13:05 +0000 (14:13 +0000)
commit8fe2d2015dc57e4e048f733c7fbb5c0712b05d15
treead30da20b8b887301ad86cdf7a58bd354609b3c2
parente3a985fe9aaa55088cf3cb03244949c72f8aaed9
[Patch #1618455 by Ben Maurer] Improve speed of HMAC by using str.translate()
   instead of a more general XOR that has to construct a list.

Slightly modified from Maurer's patch: the _strxor() function is no longer
necessary at all.
Lib/hmac.py