Maybe MD5 as a third option. Those 3 (CRC32,MD5,SHA1) are currently used by ClrMame aswell.

And as I see you determine the order of the PRG roms just by their order in the XML.