]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
debug dump-share: print size of encprivkey and signature too
authorBrian Warner <warner@allmydata.com>
Mon, 19 May 2008 21:24:41 +0000 (14:24 -0700)
committerBrian Warner <warner@allmydata.com>
Mon, 19 May 2008 21:24:41 +0000 (14:24 -0700)
src/allmydata/scripts/debug.py

index 8f64b8826aa88e64b05c88d7de46744366911416..da6a2cedac24f49798a7b748d0aeaad391b28e69 100644 (file)
@@ -175,6 +175,9 @@ def dump_SDMF_share(offset, length, config, out, err):
     print >>out, "  total_shares: %d" % N
     print >>out, "  segsize: %d" % segsize
     print >>out, "  datalen: %d" % datalen
+    print >>out, "  enc_privkey: %d bytes" % len(enc_privkey)
+    print >>out, "  pubkey: %d bytes" % len(pubkey)
+    print >>out, "  signature: %d bytes" % len(signature)
     share_hash_ids = ",".join(sorted([str(hid)
                                       for hid in share_hash_chain.keys()]))
     print >>out, "  share_hash_chain: %s" % share_hash_ids