Fletcher16 checksum algorithm.
More...
Fletcher16 checksum algorithm.
◆ fletcher16()
| uint16_t fletcher16 |
( |
const uint8_t * | buf, |
|
|
size_t | bytes ) |
◆ fletcher16_finish()
Finalize the checksum operation and return the checksum.
- Parameters
-
| [in] | ctx | fletcher16 context |
- Returns
- Checksum of the data
◆ fletcher16_init()
Initialize a fletcher16 context.
Multi-part version of fletcher16_full.
- Parameters
-
| [in] | ctx | fletcher16 context to initialize |
◆ fletcher16_update()
| void fletcher16_update |
( |
fletcher16_ctx_t * | ctx, |
|
|
const uint8_t * | data, |
|
|
size_t | len ) |
Update the fletcher16 context with new data.
- Parameters
-
| [in] | ctx | fletcher16 context |
| [in] | data | Data to add to the context |
| [in] | len | Length of the data |