Hi there,
I am trying to accelerate the crc calculation in my application code with clmul instruction. I know the basic idea of CRC and am able to get correct CRC value for data with length larger than 4 bytes using clmul instructions. However when the size of remaing data becomes less than 4 bytes, let's say just one byte, the clmul-based solution doesn't work as expected, it will produce CRC for {0x00, 0x00, 0x00, 0x1B}, not just for {0x1B}. Indeed those clmul instructions are designed to operate on 32bit registers. So is it possible to use them to get CRC32 for a single byte? Any advise are welcomed.
BTW: using lookup-table based solution, I do get CRC32 value for single byte data.
BR,
Terry