/usr/include/canlock.h is in libcanlock2-dev 2b-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 | char *sha_key(const unsigned char *secret, size_t seclen,
const unsigned char *message, size_t msglen);
char *sha_lock(const unsigned char *secret, size_t seclen,
const unsigned char *message, size_t msglen);
int sha_verify(const char *key, const char *lock);
char *lock_strip_alpha(const char *key, char *type);
char *lock_strip(const char *key, char *type);
|