aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sca
diff options
context:
space:
mode:
authorJ08nY2023-11-16 15:35:09 +0100
committerJ08nY2023-11-16 15:35:09 +0100
commit67261d0235cd816bd51b0716fb4541579ea2dea8 (patch)
treed0a5d2bdfe7e1bbd67d7ebb7efd88337ad158890 /test/sca
parentb57c5d8c25b2f23f88ab103678c938c684c10945 (diff)
downloadpyecsca-67261d0235cd816bd51b0716fb4541579ea2dea8.tar.gz
pyecsca-67261d0235cd816bd51b0716fb4541579ea2dea8.tar.zst
pyecsca-67261d0235cd816bd51b0716fb4541579ea2dea8.zip
Add more formulas to lib db.
Diffstat (limited to 'test/sca')
-rw-r--r--test/sca/test_structural.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/sca/test_structural.py b/test/sca/test_structural.py
index 0587f7a..83a568c 100644
--- a/test/sca/test_structural.py
+++ b/test/sca/test_structural.py
@@ -175,6 +175,41 @@ def test_formula_similarity(secp128r1):
("other", "Curve25519"),
LadderEFDFormula,
],
+ [
+ "add-bearssl-v06",
+ ShortWeierstrassModel,
+ "jacobian",
+ ("secg", "secp256r1"),
+ AdditionEFDFormula,
+ ],
+ [
+ "dbl-bearssl-v06",
+ ShortWeierstrassModel,
+ "jacobian",
+ ("secg", "secp256r1"),
+ DoublingEFDFormula,
+ ],
+ [
+ "add-libgcrypt-v1102",
+ ShortWeierstrassModel,
+ "jacobian",
+ ("secg", "secp256r1"),
+ AdditionEFDFormula,
+ ],
+ [
+ "dbl-libgcrypt-v1102",
+ ShortWeierstrassModel,
+ "jacobian",
+ ("secg", "secp256r1"),
+ DoublingEFDFormula,
+ ],
+ [
+ "ladd-go-1214",
+ MontgomeryModel,
+ "xz",
+ ("other", "Curve25519"),
+ LadderEFDFormula,
+ ],
],
)
def test_formula_correctness(name, model, coords, param_spec, formula_type):