Verhoeff Checksum#
This module includes functions for Verhoeff checksum calculation and validation.
The functions in this module are available when OPENTHREAD_CONFIG_VERHOEFF_CHECKSUM_ENABLE
is enabled.
Functions#
Calculates the Verhoeff checksum for a given decimal string.
Validates the Verhoeff checksum for a given decimal string.
Macros#
Specifies the maximum length of decimal string input in otVerhoeffChecksum
functions.
Function Documentation#
otVerhoeffChecksumCalculate#
otError otVerhoeffChecksumCalculate (const char * aDecimalString, char * aChecksum)
Calculates the Verhoeff checksum for a given decimal string.
[in] | aDecimalString | The string containing decimal digits. |
[out] | aChecksum | Pointer to a |
Requires OPENTHREAD_CONFIG_VERHOEFF_CHECKSUM_ENABLE
.
72
of file include/openthread/verhoeff_checksum.h
otVerhoeffChecksumValidate#
otError otVerhoeffChecksumValidate (const char * aDecimalString)
Validates the Verhoeff checksum for a given decimal string.
[in] | aDecimalString | The string containing decimal digits (last char is treated as checksum). |
Requires OPENTHREAD_CONFIG_VERHOEFF_CHECKSUM_ENABLE
.
86
of file include/openthread/verhoeff_checksum.h