Optimized Depth Modular Reduction over
This repository contains the Proof-of-Concept (PoC) implementation for the Suwako algorithm.
-
Logarithmic Depth: Breaks the linear dependency of traditional LFSRs, achieving
$O(\log m)$ folding depth. -
Parameter Agility: Supports arbitrary trinomials (runtime variable
$k$ ) with a unified, branch-free datapath. - Compactness: Core reduction logic is implemented in < 10 lines of Python.
For the theoretical proof complexity/depth analysis, please refer to our paper:
Suwako: A Logarithmic-Depth Modular Reduction for Arbitrary Trinomials over
$\mathbb{F}_{2^m}$ without Pre-computation > Read the Paper (PDF)
Run the automated testbench (validates against standard LFSR ground truth):
# to check correctness
python poc.py
# to benchmark
python bench.py