John-Mark Gurney
52f6b9fc2a
switch to bytes as it's smaller, raise error on 0 ** -x
1 year ago
John-Mark Gurney
67c6e04f80
implement better algorithm for power calculation...
1 year ago
John-Mark Gurney
f1738f3e44
make sure GF2p8 is hashable..
1 year ago
John-Mark Gurney
8dfd8be02b
make hashable, add comment about log tables, use bytes for reduction array
1 year ago
John-Mark Gurney
1d3c778147
implement / (division), use self.__class__ more..
1 year ago
John-Mark Gurney
9391c8ce41
improve docs, handle some edge cases, use generator instead of list
also hard code the reduction table, but check it in the tests...
1 year ago
John-Mark Gurney
d791a00054
ignore the usual suspects..
1 year ago
John-Mark Gurney
ce2b670511
add/improve docs, more exhaustive testing of combinations.
1 year ago
John-Mark Gurney
3a7775c813
be strict w/ evalpoly to help catch the previous commit bug...
This makes sure that the coefficients and polynomial match such
that either there's enough coefficients, or the polynomial is..
1 year ago
John-Mark Gurney
12aabd659d
major fix, was generating shares for k-1 instead of k...
also use 0 as a coeff, the original paper uses 0.
for powerseries, my docs were correct, but the implementation
wrong... partly because I used zip which works on mismatched
lengths..
1 year ago
John-Mark Gurney
7958361dfd
add original paper
1 year ago
John-Mark Gurney
d3b1e1f4ef
wrap lines to be under 80 cols..
1 year ago
John-Mark Gurney
04ab6d9f83
add a few case to get 100% coverage
1 year ago
John-Mark Gurney
89a39dc74f
maps have rotted my brain.. drop if and adjust range to cover it..
1 year ago
John-Mark Gurney
b74f9184d2
use secrets, Python hasn't turned off this foot gun yet..
1 year ago
John-Mark Gurney
38d73b189e
add copyright and license
1 year ago
John-Mark Gurney
218a18b0f1
implement inv (w/ cache), evalpoly, create_share, recover_data
the last two are scarily short.
1 year ago
John-Mark Gurney
b5703e6f50
add first cut of GF(2^8)..
1 year ago