Fix padding and other digests