Closed maths644311798 closed 10 months ago
The file linear_code.h implements a d-local-linear-code for the Ferret Oblivious Transfer (OT) extension, as described in Appendix A.2 of https://eprint.iacr.org/2020/924.pdf. Moreover, the majority of the implementation is based on the code from https://github.com/emp-toolkit/emp-ot/blob/master/emp-ot/ferret/lpn_f2.h. :)
I conclude the implementation here. Over $F_2$, the generator matrix $G$ satisfies the definition of $d$-local linear codes. The generator matrix $G$ has several groups of $1s$. Each group contains 64 or 128 $1s$ and the $1s$ lie in a slash. For example,
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<> <> 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 -- | -- | -- | -- | -- | -- | -- | -- | | | | | | | 1 | | | | | | | | 1 | | | 1 | | | | | … | | | 1 | | 1 | | | 1 | 1 | | … | | 1 | | | | 1 | | 1 | | … | | | | … | | | | 1 | | | | 1 | | | | | | |
In linear_code.h, Yacl refers to The minimum locality of linear codes and other links. This paper proves many results about locality. Yacl implements which algorithm? Can it be pointed out clearly?