Support configurable digest size