mi_get_padlen function

Get max length of ID data.