kn_decode_hex
int kn_decode_hex(char *, char **);
if (kn_decode_hex(key, (char **) &decoded) != 0)
if (kn_decode_hex(sig, (char **) &decoded) != 0)