EasyManua.ls Logo

Oracle StorageTek T10000

Oracle StorageTek T10000
310 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Reed-Solomon CRC
August 2016 Data Integrity Validation 249
/* ASCII "12345678" Expected CRC is 0x03124E3E */
0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38
/* Other odd byte size data crc's */
/* ASCII "123456789" Expected CRC is 0x4B4F673A */
/* ASCII "123456789A" Expected CRC is 0x25B15071 */
/* ASCII "123456789AB" Expected CRC is 0x5B929B1E */
#endif
};
printf("\nReed Solomon version 1.0, Demonstration Program.\n\n");
blk_len = sizeof(test_data);
printf("Sizeof test_data = %d \n", blk_len);
printf("Input String:\n");
for( cnt = 0; cnt < blk_len; cnt++ )
printf("%02X ", test_data[cnt]);
/* Compute Reed Solomon CRC */
blk_len = sizeof(test_data);
blk_adr = &test_data[0];
crc = INIT;
crc = GenerateRSCRC(crc, blk_len, blk_adr);
printf("\n\nReed Solomon Actual CRC = 0x%08X\n", crc);
#ifdef FICON
printf("\nExpected CRC = 0x61A56001\n\n");
#else
if(blk_len == 8)
printf("\nExpected CRC = 0x03124E3E\n\n");
#endif
return(0);
}

Table of Contents

Other manuals for Oracle StorageTek T10000

Related product manuals