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

bmt.h (292B)


      1 #ifndef _LIBSWARM_BMT_H
      2 #define _LIBSWARM_BMT_H
      3 
      4 #include "swarm.h"
      5 
      6 typedef struct bmt {
      7 	unsigned char buf[SWARM_DATA_LENGTH_TYPESIZE + SWARM_BLOCK_SIZE];
      8 	unsigned char *w_ptr;
      9 	unsigned char *r_ptr;
     10 	unsigned char *target;
     11 } bmt_t;	
     12 
     13 #include "bmt_interface.h"
     14 
     15 #endif // _LIBSWARM_BMT_H