Fixed output of digest in that there was incorrect 0 padding for the hex output