kn_encode_hex
int kn_encode_hex(unsigned char *, char **, int);
if (kn_encode_hex(ptr, &s, i) != 0)
if (kn_encode_hex(ptr, &s, i) != 0)
if (kn_encode_hex(bn->bn_key, &s, bn->bn_len) != 0)
i = kn_encode_hex(sbuf, (char **) &finalbuf, slen);