_digest uses const* type (doesn't modify state)