* @desc Check that the IUT generates e2eProtection CRC properly.
* <pre>
* Pics Selection: PICS_MIM_GENERATION
* Initial conditions:
* with {
* the IUT being in the "initial state"
* }
* Expected behaviour:
* ensure that {
* when {
* a MIM is generated
* }
* then {
* the IUT sends a valid MIM
* containing e2EProtection
* containing crc32
* indicating correct CRC value calculated over the e2eProtection.length_ field and the rest of the message (excluding the first 6 bytes and the 4 bytes of crc32)
* }
* }
* </pre>
*
* @see ETSI TS 104 202-2 v2.2.1 TP/AVM/MSD/FMT/BV-02
if(substr(v_data,0,6+2+2+4)!=substr(v_mvm,0,6+2+2+4)){// Check bytes before checksum are not modified
setverdict(fail);
}
if(substr(v_data,6+2+2+4+4,lengthof(v_data)-(6+2+2+4+4))!=substr(v_mvm,6+2+2+4+4,lengthof(v_mvm)-(6+2+2+4+4))){// Check bytes after checksum are not modified