FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Portage Developer

LinkBack Thread Tools
Old 09-30-2011, 01:27 AM
"Robin H. Johnson"
Default GLEP59: Manifest2 hash types implementation

For an overview of tree-signing, please see informational GLEP57.

This patch series implements all parts needed for GLEP59. Upcoming patch series
will include support for the rest of the tree-signing, GLEP59-61.

[1/4] Manifest2 hash: Whirlpool
[2/4] Manifest2 hash: SHA512
New hashes.

[3/4] Manifest2 hash backend provider: mhash
New hash provider.
Please note that neither pyopenssl nor python-gnutls provide suitable hashing
functionality (pyopenssl misses hashing, gnutls misses WHIRLPOOL).

[4/4] GLEP59: Change live Manifest2 hashes to SHA256, SHA512, WHIRLPOOL
Per subject. Change the actual defaults.
Old 09-30-2011, 05:19 PM
James Cloos
Default GLEP59: Manifest2 hash types implementation

If you are going to update the hash code, you also should parallelize
the calculation.


call the initialization function of hash
read a block of the file
mix it into each hash in turn
end loop:
finalize each hash

It is silly and, for large DIST files, slow to read(2) the file n times
when it is only needed once.

To be clear, I'm not suggesting doing each hash in its own thread. Just
using their lower-level APIs avoid read(2)ing through the file n times.

James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6

Thread Tools

All times are GMT. The time now is 01:43 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org