Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120828200942.GF1104@port70.net>
Date: Tue, 28 Aug 2012 22:09:42 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: Help-wanted tasks for musl

* Rich Felker <dalias@...ifal.cx> [2012-08-19 22:12:23 -0400]:
> On Mon, Aug 20, 2012 at 03:58:54AM +0200, Szabolcs Nagy wrote:
> > sha and md5 crypt does not decode the salt
> > it is directly passed to a hash function
> 
> Ah, that makes it uglier then, because presumably some of these
> malformed things you mentioned are "valid" salt.
> 

i modified my sha crypt implementation so it is very strict
about the rounds= part of the salt and checks for key length

otherwise it should be compatible with the glibc one

(i only attach the sha256 version)

View attachment "crypt_sha256.c" of type "text/x-csrc" (8867 bytes)

View attachment "crypt_sha256_test.c" of type "text/x-csrc" (3036 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.