ability to specify digest algorithm