Fix typo in sha1 code
Fix unpack to work with receivePack