Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1337201781.91143.YahooMailNeo@web161302.mail.bf1.yahoo.com>
Date: Wed, 16 May 2012 13:56:21 -0700 (PDT)
From: deepika dutta <deepikadutta_19@...oo.com>
To: "john-dev@...ts.openwall.com" <john-dev@...ts.openwall.com>
Subject: mschapv2-conversion

I did following modifications and while debugging the program, it gets terminated in fmt_self_test() in crypt_all(). It is not able to do the DES encryption. I think that I may be compiling the program wrongly. I don't know what's the problem.  I did following changes.

1. In MSCAHPv2_fmt_plug.c, in init(), DES_bs_init() is called with LM=2.
2. In DES_bs.c, DES_bs_init() changes done for option LM=2.
3. In MSCHAPv2_fmt_plug.c, mschapv2_set_salt(), challenge is set as plaintext in DES_bs_all.B.
4. MSCHAPv2_fmt_plug.c, mschapv2_crypt_all(), call to DES_bs_set_key() and DES_bs_crypt_one() is made.
5. In DES_bs_b.c, DES_bs_crypt_one() function is added.

I have not completed the conversion fully but was testing for fmt_self_test() which should be able to encrypt using DES_bs_crypt_one() but it terminates on reaching S1(....). I have attached the source files, where sections marked CHANGE are the changes I have done.

 
Cheers,
Deepika
Content of type "text/html" skipped

View attachment "DES_bs.c" of type "text/plain" (11241 bytes)

View attachment "DES_bs_b.c" of type "text/plain" (42423 bytes)

View attachment "MSCHAPv2_fmt_plug.c" of type "text/plain" (15083 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.