Support variable hash lengths