Put CRC-32 function in a new unit

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>