#include <libcanlock-3/canlock.h> cl_hash_version cl_split(char *input, char **klstring);
Possible return values (by version 3.0.0 of libcanlock):
CL_INVALID CL_SHA1 CL_SHA224 CL_SHA256 CL_SHA384 CL_SHA512
The hash algorithm for <scheme> is extracted and the corresponding ID is returned. If the hash algorithm is not found or not supported, CL_INVALID is returned.
A pointer to the <c-key-string> or <c-lock-string> element respectively is
on success (points inside the string
and therefore no additional memory is allocated).
NULL is written to klstring on error.
RFC5537, RFC6234, RFC8315