add digest algorithm