Navigation:  thinBasic Modules > Crypto > iCrypto_CRC16 >

iCrypto_TestCRC16

Previous pageReturn to chapter overviewNext page

 

Description

 

The iCrypto_TestCRC16() function verifies a 16-bit checksum using a well know set of bytes.

 

Syntax

 

iCrypto_TestCRC16() AS NUMBER

 

Returns

 

Returns AS NUMBER

   If the function succeeds, the return value is nonzero.

   If the function fails, the return value is zero.

 

Parameters

 

Name

Type

Optional

Meaning









 

Remarks

 

   This function is for internal use only.

 

Restrictions

 

 

See also

 

iCrypto_CRC16, iCrypto_CRC32, iCrypto_TestCRC32

 

Examples

 

IF iCrypto_TestCRC16() THEN

  MSGBOX 0, "The iCrypto's implementation of CRC16 it's ok!"

END IF