Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] checksum calculation

From: rebol-list2::seznam::cz at: 10-Sep-2003 0:46

Hello rebol-list, I still have problems with calculation of CRCs for example how to implement this C code in Rebol: ULONG CalcTableChecksum(ULONG *Table, ULONG Length) { ULONG Sum = 0L; ULONG *Endptr = Table+((Length+3) & ~3) / sizeof(ULONG); while (Table < EndPtr) Sum += *Table++; return Sum; } where ULONG is 32-bit unsigned integer and Table is just some binary data which needs to be signed. Can anybody help me? thanks Oldes