Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 19 May 2012 06:50:57 -0700 (PDT)
From: deepika dutta <deepikadutta_19@...oo.com>
To: john-dev@...ts.openwall.com
Subject: Re: mschapv2-conversion

i solved the problem, it is passing fmt_self_test() now, i want to know whether the plaintext should be set in DES_bs_all.B in little endian form. From what I have understood, the key is set in little endian form in DES_bs_all.K (each character is written in little endian), and the 48 bits of a round key point to appropriate key index in accordance with PC1 & shifts & PC2 (where the index is being calculated taking care of endianness).

Now when in sbox functions B elements are xored with round key, is B assumed to be in  little endian form??  Cheers,
Deepika


________________________________
 From: Solar Designer <solar@...nwall.com>
To: john-dev@...ts.openwall.com 
Sent: Thursday, May 17, 2012 5:25 AM
Subject: Re: [john-dev] mschapv2-conversion
 
Deepika -

On Wed, May 16, 2012 at 01:56:21PM -0700, deepika dutta wrote:
> 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.

Despite of my previous response, I took a quick look.

In DES_bs_crypt_one(), you set:

    k = DES_bs_all.KS.v;

I think it should be:

    k = DES_bs_all.KS.p;

to match DES_bs_crypt_LM() in this aspect, because that's the quicker
approach when there are no iterations and that's what you should be
initializing for (I haven't checked whether you actually do).

Alexander
[ CONTENT OF TYPE text/html SKIPPED ]

Powered by blists - more mailing lists

Your e-mail address:

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