Welcome to CRUX bug tracking.
FS#223 - Add sha256 support to pkgutils
Attached to Project:
CRUX
Opened by Brett Goulder (predatorfreak) - Wednesday, 13 February 2008, 01:48 GMT+2
Last edited by Jose V Beneyto (sepen) - Tuesday, 22 January 2013, 15:15 GMT+2
Opened by Brett Goulder (predatorfreak) - Wednesday, 13 February 2008, 01:48 GMT+2
Last edited by Jose V Beneyto (sepen) - Tuesday, 22 January 2013, 15:15 GMT+2
|
DetailsHere is a patch to add sha256 support to pkgutils, it adds the options -us/-is/-cs (--update-sums/--ignore-sums/--check-sums), but still accepts the old -cm/-im/-cm for compatibility.
|
This task depends upon
pkgutils-5.31.0-add-sha256-su...
sha256 would lead to incompatible ports. So, what's the reason/advantages?
1: http://www.win.tue.nl/hashclash/SoftIntCodeSign/
CRUX is supposed to be forward moving, why are you defending a defeated integrity verification scheme? If CRUX is not going to be serious about it, you might as well remove the MD5 verification method as well.
Please, I don't mean to sound like I'm attacking you here, but there is no reason to resist this change, it makes perfect sense to slowly transition away from MD5, as it is a defeated algorithm. Unless you never even looked at my patch, you should know that's exactly what I've provided here: A slow transitional route for moving to SHA256.
<quote>Existing files with a known hash that have not been prepared in this way are not vulnerable.</quote>
We are not using the md5sum in a application where a collision-resistant hash function is required, but in a one-way function, so in our usage the md5sum is still secure. [2]
Anyway, I got the feeling that the whole md5/sha256 discussion is getting more emotional than constructive, but I'd like to go back to the later.
Basically I have nothing against using sha256 or something else instead of md5, but I don't see any need for hurry here, and I'd like to see a solution that fits best for CRUX and works at least for the next years.
WRT the implementation we should consider a hard break without backwards compatibility as well, which, of course, creates more rumor, but can be done easy and fast at least for the official repos. Seems more CRUX like to me.
Finally I correct my above vote to 0.
[2] ftp://ftp.rsasecurity.com/pub/cryptobytes/crypto2n2.pdf