Use the right digest algorithm strings for signing.