On 12/08/2012 07:35:31 AM, Elie De Brauwer wrote:
Hello all,

In attach you can find some tests for sha1sum, these are mainly based on http://tools.ietf.org/html/rfc3174. I just placed them in sha1sum.test,
but apparently sha1sum.c has recently been consumed by md5sum.c so it
might or might not be a good idea to actually merge them with the md5sum
tests.

Yay tests! Thanks.

The merger between sha1sum and md5sum is entirely a matter of shared infrastructure. I pondered moving encryption plumbing to lib/lib.c but it's kinda specific to doing encryption stuff. (Then again the bunzip2 plumbing lives there. I'm actually tempted to move that back to the command file and implement tar by just having it exec bzip2 and pipe stuff through it. This would naturally distribute the work across processors...)

Anyway: I've got sha256 and such vaguely queued up on the todo list, so it's quite possible I'll split these back into separate files with the common bits under lib/. Having separate test files sounds like the right approach.

Thanks,

Rob
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to