jedisct1/libsodium — pull request #54 by GraxRabble (2013-07-11 08:31:42+00:00)
Title: Added sodium_hex2bin

Hello, just added sodium_hex2bin to compliment sodium_bin2hex and attempted to follow the syntax as closely as possible. It works by using sscanf to read hexadecimal data from the input buffer and split out a corresponding binary into the output buffer. It will read data till it encounters invalid data and then stop. If you want, you can make it return NULL on invalid data.