[1/4] from: gschwarz:netconnect:au at: 11-Oct-2006 15:31
Has anyone written a function to do CRC, or give a few pointers? Name : "CRC-16" Width : 16 bits Poly : 8005 hexadecimal number Init : 0000 Check : BB3D the checksum obtained when the ASCII string "123456789" is fed into the function The main part of the function deals with unsigned bytes, which is were I am getting errors. Regards, Greg
[2/4] from: rebolek::gmail::com at: 11-Oct-2006 11:10
Hi Greg, maybe this will be useful for you:
>> ? checksum
USAGE: CHECKSUM data /tcp /secure /hash size /method word /key key-value DESCRIPTION: Returns a CRC or other type of checksum. CHECKSUM is a native value. ARGUMENTS: data -- Data to checksum (Type: any-string) REFINEMENTS: /tcp -- Returns an Internet TCP 16-bit checksum. /secure -- Returns a cryptographically secure checksum. /hash -- Returns a hash value size -- Size of the hash table (Type: integer) /method -- Method to use word -- Method: SHA1 MD5 (Type: word) /key -- Returns keyed HMAC value key-value -- Key to use (Type: any-string) On 10/11/06, Greg Schwarz <gschwarz-netconnect.com.au> wrote:
> Has anyone written a function to do CRC, or give a few pointers? > Name : "CRC-16"
<<quoted lines omitted: 12>>> To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject.
-- / Boleslav Brezovsky http://krutek.info \
[3/4] from: anton::wilddsl::net::au at: 11-Oct-2006 23:45
Be sure to check out these Carl's Blog articles: http://www.rebol.net/article/0278.html http://www.rebol.net/article/0281.html Anton.
[4/4] from: SunandaDH:aol at: 11-Oct-2006 8:55
In a message dated 11/10/2006 06:33:01 GMT Daylight Time, gschwarz-netconnect.com.au writes:
> Has anyone written a function to do CRC, or give a few pointers?
crc-32 here: http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=crc32.r Sunanda.
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted