Skip to content

Commit

Permalink
more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ladnir committed Jul 28, 2023
1 parent eb2203b commit a2067a2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libOTe/Tools/EACode/EACode.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ namespace osuCrypto
#else
#define EA_CONSTEXPR
#endif
// THe encoder for the generator matrix G = B * A.
// Teh encoder for the generator matrix G = B * A.
// B is the expander while A is the accumulator.
//
// B has mMessageSize rows and mCodeSize columns. It is sampled uniformly
// with fixed row weight mExpanderWeight.
//
// A is a solid upper triangular n by n matrix
// https://eprint.iacr.org/2022/1014
class EACode : public ExpanderCode, public TimerAdapter
{
public:
Expand Down
2 changes: 2 additions & 0 deletions libOTe/Tools/ExConvCode/ExConvCode.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ namespace osuCrypto
//
// See ExConvCodeInstantiations.cpp for how to instantiate new types that
// dualEncode can be called on.
//
// https://eprint.iacr.org/2023/882
class ExConvCode : public TimerAdapter
{
public:
Expand Down
3 changes: 3 additions & 0 deletions libOTe/Tools/LDPC/LdpcEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ namespace osuCrypto
}
};

// INSECURE
// enum struct to specify which silver code variant to use.
// https://eprint.iacr.org/2021/1150
// see also https://eprint.iacr.org/2023/882
struct SilverCode
{
enum code
Expand Down
1 change: 1 addition & 0 deletions libOTe/Tools/QuasiCyclicCode.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
namespace osuCrypto
{

// https://eprint.iacr.org/2019/1159.pdf
struct QuasiCyclicCode : public TimerAdapter
{
private:
Expand Down
7 changes: 6 additions & 1 deletion libOTe/TwoChooseOne/ConfigureCode.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,21 @@ namespace osuCrypto

enum class MultType
{
// https://eprint.iacr.org/2019/1159.pdf
QuasiCyclic = 1,
#ifdef ENABLE_INSECURE_SILVER
// https://eprint.iacr.org/2021/1150, see https://eprint.iacr.org/2023/882 for attack.
slv5,
slv11,
#endif
// https://eprint.iacr.org/2022/1014
ExAcc7, // fast
ExAcc11,// fast but more conservative
ExAcc21,
ExAcc40, // conservative
ExConv7x24, //fast

// https://eprint.iacr.org/2023/882
ExConv7x24, //fastest
ExConv21x24 // conservative.
};

Expand Down

0 comments on commit a2067a2

Please sign in to comment.