# checksum

Checksum

Author | Matthew Schinkel - borntechi.com, copyright © 2009, all rights reserved.
Adapted-by |
Compiler | >=2.4l

Description

    This library calculates checksums for data error detection.

Sources

    http://www.faqs.org/rfcs/rfc1071.html

Dependencies

No dependency found

## Summary

### Global variables/contants

### Procedures

### Functions

- `checksum_16_byte_calc(byte in buff[], word in start, word in size) return word`
- `checksum_16_byte_verify(byte in buff[], word in start, word in size) return bit`

## API details

### Global variables/contants

### Procedures

### Functions

- `checksum_16_byte_calc(byte in buff[], word in start, word in size) return word`

      Computes a 16bit checksum from a byte array using every 2 bytes in the array.
      Mostly used for IP header checksums.

- `checksum_16_byte_verify(byte in buff[], word in start, word in size) return bit`

      Verify 16bit checksum from a byte array using every 2 bytes in the array.
      Mostly used for IP header checksums.

## Related samples

No sample found