Ruby version of Hexxeh's STM32_CRC