Decode a hexadecimal string into a newly allocated byte buffer.
Declared in <openssl/crypto.h>
unsigned char*
OPENSSL_hexstr2buf(
char const* str,
long* buflen);
Allocated buffer with decoded bytes, or NULL on error; free with OPENSSL_free().
| Name | Description |
|---|---|
| str | NUL-terminated hex text (optional ':' separators between octets). |
| buflen | Receives the number of decoded bytes, or may be NULL. |