Problem:
Try to work with Yanhua ACDP2 and BMW CAS4 I get this issue. It reads eeprom, says successful read, but then shows this error (File Verification Failed. MD5 inconsistency). When I add key and write back the file, the key never works, but works when I add key via OBD.

Solution:
In CAS4 system you don’t need to write back file ! CAS3 Ista version also, no write back.
Just make key with eeprom.
No need to write the file back. Just add the key and choose a blank slot. The magic happens automatically when you hold the key to the steering column. Think logically, when BMW send a dealer key, they aren’t writing anything to the cas. They just send a key ready to use after holding against the column, you are doing the EXACT same thing.