Convert crc32.cpp and recover-raw.cpp over to C