Specific functions for user-defined CRC calculation