defined various measurement hash and pcr functions