1gnutls_hex2bin(3) gnutls gnutls_hex2bin(3)
2
3
4
6 gnutls_hex2bin - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_hex2bin(const char * hex_data, size_t hex_size, void *
12 bin_data, size_t * bin_size);
13
15 const char * hex_data
16 string with data in hex format
17
18 size_t hex_size
19 size of hex data
20
21 void * bin_data
22 output array with binary data
23
24 size_t * bin_size
25 when calling should hold maximum size of bin_data , on
26 return will hold actual length of bin_data .
27
29 Convert a buffer with hex data to binary data. This function unlike
30 gnutls_hex_decode() can parse hex data with separators between numbers.
31 That is, it ignores any non-hex characters.
32
34 GNUTLS_E_SUCCESS on success, otherwise a negative error code.
35
37 2.4.0
38
40 Report bugs to <bugs@gnutls.org>.
41 Home page: https://www.gnutls.org
42
43
45 Copyright © 2001- Free Software Foundation, Inc., and others.
46 Copying and distribution of this file, with or without modification,
47 are permitted in any medium without royalty provided the copyright
48 notice and this notice are preserved.
49
51 The full documentation for gnutls is maintained as a Texinfo manual.
52 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
53 visit
54
55 https://www.gnutls.org/manual/
56
57gnutls 3.6.15 gnutls_hex2bin(3)