| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix: address PR review feedback for constant-time operations - Zero pooled buffers before returning to sync.Pool to prevent sensitive data leakage - Rename modMinusTwo to inverseExp for accuracy across prime/composite moduli - Remove unused GetCTModInt and ctModCache - Precompute M = N⁻¹ mod φ(N) on PrivateKey via lazy sync.Once caching Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> | 5 个月前 | |
fix: harden constant-time operations and fix ModInverseCT for composite moduli - Fix ModInverseCT/MulCT/ExpCT: pre-reduce inputs via reduceToPaddedBytes() to eliminate variable-time fallback paths when values exceed modulus range - Fix Paillier Decrypt: use NewCTModIntWithPhi(N, PhiN) instead of NewCTModInt(N), since N=P*Q is composite and Fermat's theorem requires a prime modulus - Fix Paillier Proof / modproof NewProof: use standard ModInverse for N^(-1) mod PhiN since PhiN is even (bigmod requires odd modulus); these are prover-side computations where timing is not observable - Reject negative exponents in ExpCT with explicit panic - Fix TimingProtection: implement jitter and pad slow operations - Fix ConstantTimeCompare: accept explicit padLen to avoid length leak - Deduplicate CTModInt creation in mta/proofs.go - Improve GetCTModInt cache key to use hex bytes instead of String() - Add CT-enabled tests for Paillier Decrypt, Proof, and modproof Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> | 5 个月前 | |
Update tagged version hash encoding (#257) | 2 年前 | |
[R4R] Add eddsa (#88) * [R4R] Add eddsa keygen and signing (#3) * add eddsa signing and keygen * contruct extended element from x,y * update dep * fix test * fix bug * delete unused code * add resharing * fix comments * refactor RejectionSampl;e * rename variable (#4) * delete printf * update dependency * resolve conflict | 6 年前 | |
feat: bump module path to v3 for breaking API changes The session context additions to DLN and MtA proof functions break the v2 public API, requiring a major version bump per Go semver. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> | 5 个月前 | |
Ecdsa proof session byte (#256) * Add modProof in ECDSA-keygen * Reduce test param to reduce github workflow load * Add test fixtures * Fix EDDSA keygen example * Restore test fixtures * Compress modproof * use warning instead of fatal in logger to prevent panic * Add more checks in range proof * Regenerate preparams for older version * Reset test params and regenerate fixtures * Update ecdsa-resharing with Paillier key proofs * Add a switch to optional turn off Pai key proofs * Update README for caution of preparams updated * add: ecdsa proof session byte --------- Co-authored-by: ycen <yycen@live.com> Co-authored-by: ZhAnGeek <lecky.z@nodereal.io> | 2 年前 | |
Add copyright (#58) * add copyright comments * add .idea files for copyright | 6 年前 | |
Merge branch 'master' into pull-out-random | 2 年前 | |
feat: bump module path to v3 for breaking API changes The session context additions to DLN and MtA proof functions break the v2 public API, requiring a major version bump per Go semver. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> | 5 个月前 | |
Merge branch 'master' into pull-out-random | 2 年前 | |
Exposed the random sources, so the user can customize according to their needs. Signed-off-by: Guilherme Balena Versiani <guibv@mailbox.org> | 2 年前 | |
Fixed bad signature.proto | 4 年前 | |
Ecdsa proof session byte (#256) * Add modProof in ECDSA-keygen * Reduce test param to reduce github workflow load * Add test fixtures * Fix EDDSA keygen example * Restore test fixtures * Compress modproof * use warning instead of fatal in logger to prevent panic * Add more checks in range proof * Regenerate preparams for older version * Reset test params and regenerate fixtures * Update ecdsa-resharing with Paillier key proofs * Add a switch to optional turn off Pai key proofs * Update README for caution of preparams updated * add: ecdsa proof session byte --------- Co-authored-by: ycen <yycen@live.com> Co-authored-by: ZhAnGeek <lecky.z@nodereal.io> | 2 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 5 个月前 | ||
| 5 个月前 | ||
| 2 年前 | ||
| 6 年前 | ||
| 5 个月前 | ||
| 2 年前 | ||
| 6 年前 | ||
| 2 年前 | ||
| 5 个月前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 4 年前 | ||
| 2 年前 |