Displaying 1 result from an estimated 1 matches for "digestlength".
2005 Jan 19
1
PROPOSAL: --link-hash-dest, additional linking of files to their HASH values
...ons of files shouldn't waste too many inodes or put a gross number of
files into each directory. The code to generate the hash directory name is
parameterized though, and could easily generate 1-4 layers.
static char hex_char[16] = "0123456789abcdef";
int prefixdirs = 2;
...
int digestlength;
digestlength = MD4_DIGEST_LENGTH;
...
const char *hashdir
...
hashdirlen = strlen(hashdir);
hashpath = malloc(hashdirlen+digestlength*3+1);
strcpy(hashpath,hashdir);
hashpath[hashdirlen]='/';
for (i=0;i<prefixdirs;i++) {
hashpath[hashdirlen+i*3+1] = hex_char[md[i] >&...