]> git.e2factory.org Git - e2factory.git/commit
Improve hash module
authorTobias Ulmer <tu@emlix.com>
Thu, 2 Aug 2012 15:24:12 +0000 (17:24 +0200)
committerTobias Ulmer <tu@emlix.com>
Thu, 2 Aug 2012 15:24:12 +0000 (17:24 +0200)
commit9b2e73a171ab6328be72cb89c21a1c3523e69e15
tree8a69dacd13426bb2bfee50bd26c3f2600ab51c59
parentaf0781aa48df51bddf482810156b65b53d10b441
Improve hash module

Update sha1 ctx every 64KB instead of consuming memory until the final
step.

Add a hash_file() function which takes a path and hashes its content.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/hash.lua