Implement SHA1 unit tests

These aren't entirely final; we need to save registers in the called
code.  Also, SHA1 doesn't pass (yet).