adjust digest length