libswarm-ng

C implementation of BMT hasher, Swarmhash and Single Owner Chunk for swarm
git clone git://git.defalsify.org/libswarm-ng.git
Log | Files | Refs | Submodules | README

hex.h (240B)


      1 #ifndef LASH_HEX_H_
      2 #define LASH_HEX_H_
      3 
      4 int toHex(const unsigned char *data, size_t l, unsigned char *zHex, size_t *z);
      5 int hexchr2bin(const char hex, char *out);
      6 size_t hex2bin(const char *hex, unsigned char *out);
      7 
      8 #endif // LASH_HEX_H_