lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 18 Sep 2014 13:41:09 +1000
From: Rade Vuckovac <rade.vuckovac@...il.com>
To: discussions@...sword-hashing.net
Subject: Re: [PHC] Schvrch is broken

Hi Bill



Please find schvrch2prelim.h attached.



Memory cost attempt:

- write to the memstate is done by state stir stream

- read is done by getting index of current carry modulo memstate array size
and reading memstate element with that index

- read result modifies mixer

- until next read, stir is run to produce a new current carry (it runs
statelen times but that can be fine tuned)

- hash is just a partial final state (every 8th word provides one byte =
256 bits)



Never done programming professionally (although have cs formal education,
MAG entry to eStream was my honours thesis).

Happpy to do work with you too if Schvrch makes to the next stage.



Regards, Rade

On Wed, Sep 17, 2014 at 9:29 AM, Bill Cox <waywardgeek@...hershed.org>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 09/16/2014 07:19 PM, Rade Vuckovac wrote:
> > My err, lapsus ... apologies ... I keep forgetting that.
>
> No problem.  There is zero reason for you to apologize, while I have
> several.  Thanks for introducing me to Wolfram's Rule 30 :-)
>
> > The solution is simple with reintroducing mixer with value
> > 010101... instead of 000000... (was there in the first place to
> > nullify above mentioned xor properties) Mixer addition is actually
> > the only difference between stir and revolve and it was dropped
> > (long time ago) for the performance sake believing it was safe
> > thing to do.
>
> I did my best to attack your stir function, and failed.  I believe it
> mixes securely, if slowly.
>
> > On the positive side the 117 lines of code will shrink considerably
> > (less chance for bugs) and the algorithm will become significantly
> > simpler (will be posted in near future).
>
> I look forward to it.  My preference for implementing Wolfram's Rule
> 30 is this loop:
>
> static uint128_t updateState(uint128_t a) {
>     uint128_t lsb = a & 1;
>     uint128_t msb = a >> 127;
>     return ((a << 1) | msb) ^ (a | (a >> 1) | (lsb << 127));
> }
>
> This would work well in our SIMD uints, and mixes reasonably fast.
> Keccak combined this with moving lot's of data around to get near and
> far data mixing, similar to what Blake2b seems to do.  This whole
> AND-XOR-ROTATE thing is cool, and not that I know much about this
> stuff, but I only learned about because I reviewed your code, and
> eventually read your paper.  It is very cool stuff.
>
> I do get the feeling that you are not a programmer by trade.  I happen
> to be an old code-monkey.  If you would like, I would be happy to work
> with you on a revised version so we can clean up some of the holes
> before letting Steve have a crack at it :-)
>
> Bill
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iQIcBAEBAgAGBQJUGMe9AAoJEAcQZQdOpZUZUQEP/2Vh7IbLqqNbaEdhsmJFXTkS
> KiQ99Ewt33Z0sN9LLAJirRRHev8nvUgJ+EEYKQ/j1MmKqKhPastGvIct70SwzopS
> BO0AzFT2p5t0Qdr246d9ygcg1eiby68/acTawzkdb3OpRZhMnrOdcd76LJZf4k6Q
> ZZlzWOkd48CryyG3FNIz3pt1yWC6AC/ZFtE+T/i97AXdaJCrokXd8H52nSihmpLH
> N8e6/asi0Ss0+IIicS7yLwa5ZGb3ALBbI8cflCe6g0wvPM/qoF6DAzc/0I/X/YnF
> GkGCC4v/4qSpuqG7yaL6Jemxa4w6vPRLkVffJ5d/esvU+a0+K+iN4FLj2X0fU+HJ
> /CsE2ux9yq6/cEv1RXF38jPJMDgab99Zvs8xOtsT4bGjj0rCAu9TF0ydpakIgdGI
> LNKVxuSqyPl5YZHc8xyf0aGWAA609AEZXF1yj5JA0kHwosQw4T5uvz/WtdZ1hNPG
> OtndPORpOkJZ3Fd8MXfCRtgYtrX34KF7abnC/EVn6Fu6MaCiHNMo/NLg1Ps6/wI/
> zIfo3NeV/AtVdb5M6eB0JEh0Y7pP5Q+ULDdhh6yUwBf8rOt3B5TtUAu1gNc3ouNX
> nm74fkk4yp6OSR/tukCMdoh3mqesn+dH36BswN59lirVIczr+M0eGVxccsdvaI0w
> k45vSKI4KQl5JJcwOj3/
> =F9Td
> -----END PGP SIGNATURE-----
>

Content of type "text/html" skipped

View attachment "schvrch2prelim.h" of type "text/x-chdr" (1511 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ