[REBOL] Re: CRC function
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"
> 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
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
--
/
Boleslav Brezovsky
http://krutek.info
\