Brian Warner
4b2298937b
use real encryption, generate/store/verify verifierid and fileid
2007-04-25 17:53:10 -07:00
Brian Warner
49e992b8b6
make test_encode less CPU-intense by using 4-out-of-10 encoding instead of 25-out-of-100
2007-04-19 10:56:15 -07:00
Brian Warner
2d0e240466
encode: handle uploads of the same file multiple times. Unfortunately we have to do almost as much work the second time around, to compute the full URI
2007-04-18 18:29:10 -07:00
Brian Warner
85b36e348b
encode.py: remove unused pad() code
2007-04-17 21:22:32 -07:00
Brian Warner
b84d6ed07f
encode: fix multi-segment uploads: lambdas inside for loops require special attention to make sure you are capturing the *value* of the loop variable and not just the slot it lives in
2007-04-17 20:29:08 -07:00
Brian Warner
e7ec4ff4e5
factor out the tagged hash function used for subshares/blocks
2007-04-17 20:27:56 -07:00
Brian Warner
ff8cb4d32e
encode: make MAX_SEGMENT_SIZE controllable, to support tests which force the use of multiple segments. Also, remove not-very-useful upload-side debug messages
2007-04-16 19:29:57 -07:00
Brian Warner
03fbee6ade
encode.py: remove an unused import
2007-04-12 20:09:32 -07:00
Brian Warner
30133a7cdf
hash trees: further cleanup, to make sure we're validating the right thing
...
hashtree.py: improve the methods available for finding out which hash nodes
are needed. Change set_hashes() to require that every hash provided can
be validated up to the root.
download.py: validate from the top down, including the URI-derived roothash
in the share hash tree, and stashing the thus-validated share hash for use
in the block hash tree.
2007-04-12 19:41:48 -07:00
Brian Warner
d8215e0c6f
rename chunk.py to hashtree.py
2007-04-12 13:13:25 -07:00
Brian Warner
5168c7c8d6
encode: add more logging to investigate occasional test failures
2007-04-06 18:04:38 -07:00
Brian Warner
97a40bf20f
encode/upload: add more logging, to understand the test failure on a slow buildslave
2007-04-06 15:45:45 -07:00
Brian Warner
8d2def5b04
encode: clean up some weirdness that was there to make unit tests easier to write
2007-04-05 22:36:18 -07:00
Brian Warner
919ca3e902
rename encode_new.py to encode.py, now that there isn't an old one anymore
2007-04-05 21:17:42 -07:00
Brian Warner
417c17755b
use the word 'codec' for erasure coding, for now. 'encode' is used for file-level segmentation/hashing
2007-01-11 20:51:27 -07:00
Brian Warner
42c0d2e336
disable figleaf tracing during py_ecc, since it takes *forever*, especially on the slow buildslave
2007-01-05 18:12:04 -07:00
Brian Warner
3d3a7a5b8d
encode.py: add some timing comments
2007-01-05 00:48:42 -07:00
Brian Warner
409d92e746
only run a single (short) py_ecc test on slave3, since it is so slow the tests timeout
2007-01-05 00:42:52 -07:00
Brian Warner
e1c6ee9dcf
encoding: fix the last py_ecc problem, tests pass now
2007-01-05 00:06:42 -07:00
Brian Warner
c91d14dca8
fix our use of py_ecc (set log2FieldSize=8 explicitly)
2007-01-04 23:50:21 -07:00
Brian Warner
f31fc06d89
establish IEncoder/IDecoder, create suitable interfaces for both the simple replicating encoder and the py_ecc one, add a (failing) unit test for it
2007-01-04 21:52:51 -07:00
Brian Warner
3490378551
move all packages into src/, fix allmydata.Crypto build. Now you must perform a 'setup.py build' before using anything, and you must add the build directory (build/lib.linux-i686-2.4) to your PYTHONPATH before doing anything
2006-12-14 03:39:50 -07:00