Fix sha1 digest. close #40