Skip to main content

Module crc

Module crc 

Source
Expand description

CRC-16 implementation used to compute the lock-confirmation hash of the writable portion of the configuration zone.

This is a deliberate duplicate of the same algorithm used in the firmware (crates/atecc608b/src/crc.rs). The duplication keeps the generator self-contained: it does not pull the embedded driver crate and its no_std machinery into a host build. Both implementations are tested against the same set of reference vectors taken from the Microchip CryptoAuthLib C source.

Parameters:

  • Polynomial: 0x8005
  • Initial value: 0x0000
  • Reflect in: false (MSB first)
  • Reflect out: false
  • XOR out: 0x0000

Functionsยง

crc16 ๐Ÿ”’
Compute the CRC-16 over data.