gnutls_hex2bin(3) gnutls gnutls_hex2bin(3)NAME
gnutls_hex2bin - convert hex string into binary buffer.
SYNOPSIS
#include <gnutls/gnutls.h>
int gnutls_hex2bin(const char * hex_data, size_t hex_size, char * bin_data, size_t * bin_size);
ARGUMENTS
const char * hex_data
string with data in hex format
size_t hex_size
size of hex data
char * bin_data
output array with binary data
size_t * bin_size
when calling *bin_size should hold size of bin_data, on return will hold actual size of bin_data.
DESCRIPTION
Convert a buffer with hex data to binary data.
RETURNS
GNUTLS_E_SUCCESS on success, otherwise an error.
SINCE
2.4.0
REPORTING BUGS
Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page: http://www.gnu.org/software/gnutls/ General help using GNU software:
http://www.gnu.org/gethelp/
COPYRIGHT
Copyright (C) 2008 Free Software Foundation.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
SEE ALSO
The full documentation for gnutls is maintained as a Texinfo manual. If the info and gnutls programs are properly installed at your site,
the command
info gnutls
should give you access to the complete manual.
gnutls 2.8.6 gnutls_hex2bin(3)
Check Out this Related Man Page
gnutls_compression_get_id(3) gnutls gnutls_compression_get_id(3)NAME
gnutls_compression_get_id - Returns the gnutls id of the specified in string algorithm
SYNOPSIS
#include <gnutls/gnutls.h>
gnutls_compression_method_t gnutls_compression_get_id(const char * name);
ARGUMENTS
const char * name
is a compression method name
DESCRIPTION
The names are compared in a case insensitive way.
RETURNS
an id of the specified in a string compression method, or GNUTLS_COMP_UNKNOWN on error.
REPORTING BUGS
Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page: http://www.gnu.org/software/gnutls/ General help using GNU software:
http://www.gnu.org/gethelp/
COPYRIGHT
Copyright (C) 2008 Free Software Foundation.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
SEE ALSO
The full documentation for gnutls is maintained as a Texinfo manual. If the info and gnutls programs are properly installed at your site,
the command
info gnutls
should give you access to the complete manual.
gnutls 2.8.6 gnutls_compression_get_id(3)
not much familiar with binary and hex calculation in script programming....
explaination:
binary format control the parameter turned on or off in the program stored in hex mode, the question is:
how to change 39e to 19e using the binary calculation(although i don't know the command for... (2 Replies)
Dear friends,
I have hexadecimal data like this.
now i want to read each letter and convert to decimal format.
for example.:
from the below data first i have to read hex data 0 and convert to 4 bit decimal value ie 0000.
similarly second letter 8 decimal value is 1000.
like this.... (6 Replies)
Hi Experts,
I have a file called "hex" which contains info like below
How do i convert everything in this file to decimal value? Please advice. Thanks (4 Replies)
i want to convert Hex value To EBCDIC value.
i tried to convert hex to ascii and then to ebcdic but it doesn't give desired results .
it doesn't give corresponding ebcdic value instead it gives some junk values.
e.g;
Hex EBCDIC
-----------------
81 a
82 b
83 c
84 d
85 e
86 f
87... (6 Replies)
dHi,
I have the attached file(actual file can be extracted post unzipping it) & i am trying to use the following code for coversion to hex format.
Starting hex value is 84 which is start of the record & termination is done using 00 00 followed by 84(hex) which i can see in the dump clearly using... (14 Replies)