I want to 32 crc and 30 crc and 16 crc with my own polynomial

Here is a baseline sample of the C code translated to OptoScript:

image

image

To do this I am using input from a data table, and tags for polynomial, width, topbit, and finally crc to hold the result.

3 Likes

thankyou very much sir for your response
may I know how my data( where crc to be calculated(0x31,0x32…)) has to be add to table
which type of table(data) is being used string or numeric
and what about i and j
and after compile i am getting over flow error(-13)

may i know what polynomial is used for generation 16crc (generate16crc of string)

I asked chatGPT that: CRC16_POLY 0x1021

2 Likes

thankyou very much sir for your response
may I know how my data( where crc to be calculated(0x31,0x32…)) has to be add to table
which type of table(data) is being used string or numeric
and what about i and j
and after compile i am getting over flow error(-13)
please explain

sir will you please reply for my question
while running this code i am getting overflow error

Need to generate 32 bit CBC MAC code with my 32 bit bytes hexa string data and my own key please provide example code for generation cbc mac code