self.normalization.sort()
elif tag == "Shred-Size":
self.shredsize = int(value)
- elif tag == "Hash":
+ elif tag == "Hash-Method":
self.hash = value
+ elif tag == "Generator-Program":
+ self.generator = value
elif tag == "Comment":
self.comments.append(value)
def __check_match(self, other, attr):
matches.sort(lambda x, y: cmp(x[0], y[0])) # by source chunk
# OK, dump all matches.
print "#SHIF-B 1.0"
- print "Filter-Program: shredcompare.py 1.0"
- print "Hash: MD5"
+ print "Merge-Program: shredcompare.py 1.0"
+ print "Hash-Method: MD5"
print "Shred-Size: %d" % shiflist[0].shredsize
print "Normalization:", ",".join(shiflist[0].normalization)
print "%%"
}
puts("#SHIF-A 1.0");
- puts("Generator: shredtree 1.0");
- puts("Hash: MD5");
+ puts("Generator-Program: shredtree 1.0");
+ puts("Hash-Method: MD5");
printf("Shred-Size: %d\n", shredsize);
printf("Normalization: %s\n", rws ? "remove_whitespace" : "none");
puts("%%");
ws = True
if args:
print "#SHIF-A 1.0"
- print "Generator: shredtree.py 1.0"
- print "Hash: MD5"
+ print "Generator-Program: shredtree.py 1.0"
+ print "Hash-Method: MD5"
print "Shred-Size: %d" % shredsize
normalization = []
if ws: normalization.append("remove_whitespace")