pgcrypto: bug in gen_salt (md5/xdes)

Started by Marko Kreenover 20 years ago2 messagespatches
Jump to latest
#1Marko Kreen
markokr@gmail.com

There is a signedness bug in Openwall gen_salt code that
pgcrypto uses. This makes the salt space for md5 and xdes
algorithms a lot smaller.

Salts for blowfish and standard des are unaffected.

Attached is upstream fix for it. This applies all the
way from 7.2 to 8.1 and HEAD. Please apply this to all
active branches.

--
marko

Attachments:

fix.gensalt.difftext/x-patch; charset=us-ascii; name=fix.gensalt.diffDownload+18-18
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Marko Kreen (#1)
Re: pgcrypto: bug in gen_salt (md5/xdes)

Marko Kreen <markokr@gmail.com> writes:

There is a signedness bug in Openwall gen_salt code that
pgcrypto uses. This makes the salt space for md5 and xdes
algorithms a lot smaller.

Salts for blowfish and standard des are unaffected.

Attached is upstream fix for it. This applies all the
way from 7.2 to 8.1 and HEAD. Please apply this to all
active branches.

Applied back to 7.3 ... we are not maintaining 7.2 anymore.

regards, tom lane