From cf3008f1bb86ea04a659936958191a91313aa080 Mon Sep 17 00:00:00 2001 From: Maths <644311798@qq.com> Date: Thu, 18 Jan 2024 18:52:54 +0800 Subject: [PATCH] Update ea_code.h --- yacl/crypto/primitives/code/ea_code.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yacl/crypto/primitives/code/ea_code.h b/yacl/crypto/primitives/code/ea_code.h index ecb837f8..ce044e9b 100644 --- a/yacl/crypto/primitives/code/ea_code.h +++ b/yacl/crypto/primitives/code/ea_code.h @@ -83,7 +83,7 @@ class ExAccCode : public ExAccCodeInterface { explicit ExAccCode(uint32_t n, uint32_t m) : n_(n), m_(m) { YACL_ENFORCE(m >= n); YACL_ENFORCE(n > d, - "ExAccCode: Dimension should be much greater than Weight"); + "ExAccCode: Length should be much greater than Weight"); }; uint32_t GetDimention() const override { return m_; } @@ -94,7 +94,7 @@ class ExAccCode : public ExAccCodeInterface { // Expand Accumulate Code // dual LPN problem --> G = A * B - // thus, dual encode would be xG = (xA) * B = y * B, y[i] = sum_{j in, absl::Span out) const override { DualEncodeImpl(in, out); @@ -134,7 +134,7 @@ class ExAccCode : public ExAccCodeInterface { YACL_ENFORCE(in.size() >= m_); YACL_ENFORCE(out.size() >= n_); - // y[i] = sum_{j<=i} x[i] + // y[i] = sum_{j<=i} x[j] Accumulate(in); // d-Local Linear Code Expand(absl::MakeConstSpan(in), out); @@ -149,7 +149,7 @@ class ExAccCode : public ExAccCodeInterface { YACL_ENFORCE(out0.size() >= n_); YACL_ENFORCE(out1.size() >= n_); - // y[i] = sum_{j(in0); Accumulate(in1); // d-Local Linear Code