Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [day] [month] [year] [list]
Date: Thu, 5 Jul 2012 01:51:03 -0700 (PDT)
From: deepika dutta <deepikadutta_19@...oo.com>
To: "john-dev@...ts.openwall.com" <john-dev@...ts.openwall.com>
Subject: mschapv2 conversion

Finally, after a long struggle with the code Igot the test suite working :) 

Actually as suggested by solar previously, that in mschapv2_crypt_all() we should 
put MD4 and setup_des_key() both in key_prepared flag to prevent 
recomputation of setup_des_key() , I did that change. Now since in cmp_exact() the key is set again to new value (which I am doing in index 0) therefore the value of des_bs_all.K changes (for index 0) and because for 
next plaintext in crypt_all() we do not do setup_des_key(), therefore 
des_bs_all.K (at index 0) is not set to correct value. 


So what I have done now is that in cmp_exact() of mschapv2 before we return, i call setup_des_key() once again only for setting the key for index 0 which sets the keys to correct value.

I will upload the patch soon...
 
Cheers,
Deepika
[ CONTENT OF TYPE text/html SKIPPED ]

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ