modify chap md5 challenge hash function