feat: 实验性 SM-15M 算法实现

实验性 SM-15M 逆向工程算法实现
This commit is contained in:
2025-12-21 02:15:23 +08:00
parent 243eea864b
commit 98ec6504a4
16 changed files with 1875 additions and 19 deletions

View File

@@ -94,7 +94,7 @@ class TestSM2Algorithm(unittest.TestCase):
SM2Algorithm.revisor(algodata, feedback=5, is_new_activation=True)
self.assertEqual(algodata[SM2Algorithm.algo_name]["rept"], 0)
self.assertEqual(algodata[SM2Algorithm.algo_name]["efactor"], 2.5)
# interval 应为 1因为 rept=0
# interval 应为 1(因为 rept=0)
self.assertEqual(algodata[SM2Algorithm.algo_name]["interval"], 1)
def test_revisor_efactor_calculation(self):