Allow choice of digest algorithm when signing.