Moved constant_time_compare to be C