fixed sha1 case when msg was between 57 and 64 long

SHA1 implementation was throwing an exception when msg length was between 56 and 64 (when there was no space to add further 8 bytes)