I am trying to convert a hexadecimal character array to a binary array (unsigned char) that I can use in crypto functions using Cryptlib or OpenSSL. Basically I have a Hex representation of a key like (02726d40f378e716981c4321d60ba3a3) which as a character array is 32 characters but as a binary array should be 16 bytes.
The character array is being read in from a file, how can I convert it to its binary representation as an unsigned char array?
Thanks.