]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fix two more stupid bugs in 3des-ctr:
authorBen Harris <bjh21@bjh21.me.uk>
Thu, 28 Apr 2005 08:21:04 +0000 (08:21 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Thu, 28 Apr 2005 08:21:04 +0000 (08:21 +0000)
commit34741dcc19c17ed143b1761f510be5416d2e7ce2
tree6eec22d0d6dbb9d96ede7d73982fc21a8778e64b
parent61199b6a04a790d62e47673f8d1462fb3e8314e8
Fix two more stupid bugs in 3des-ctr:
 - We were using the first word of each block of keystream block twice and the
   second not at all.
 - We were incrementing the high-order word of the counter after every block
   rather than the low-order one.

With those fixed, our 3des-ctr implementation interoperates with the one in
Moussh.  Thanks to der Mouse for his help with the testing.

3des-ctr is now enabled by default.

[originally from svn r5699]
sshdes.c