pub unsafe extern "C" fn otVerhoeffChecksumValidate(
aDecimalString: *const c_char,
) -> otError
Expand description
Validates the Verhoeff checksum for a given decimal string.
Requires OPENTHREAD_CONFIG_VERHOEFF_CHECKSUM_ENABLE
.
@param[in] aDecimalString The string containing decimal digits (last char is treated as checksum).
@retval OT_ERROR_NONE Successfully validated the checksum in @p aDecimalString.
@retval OT_ERROR_FAILED Checksum validation failed.
@retval OT_ERROR_INVALID_ARGS The @p aDecimalString is not valid, i.e. it either contains chars other than
[‘0’-‘9’], or is longer than OT_VERHOEFF_CHECKSUM_MAX_STRING_LENGTH
.