Skip to content

Commit

Permalink
Fix PAI test
Browse files Browse the repository at this point in the history
  • Loading branch information
Legrandin committed Jun 22, 2024
1 parent 1678603 commit 3b40c32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Crypto/SelfTest/PublicKey/test_ECC_Curve25519.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
(0x10101, 0xa679e9d7e043bf76c03362576e2c88abe9093c5d4f6b4a202c64a8397467cf),
(0xAA55CC, 0x2cc02f84c067e3586f4278326689be163e606d69ccae505bb09488e11f295887),
(0x1B29A0E579E0A000567, 0x50c38a72d7bfd7864c8b9083fa123e8d359068e6b491a019a885036e073f6604),
(0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed, 0),
(0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed + 1, 9),
]

Expand Down Expand Up @@ -100,6 +99,9 @@ def test_scalar_multiply(self):
pointH = 0 * base
self.assertTrue(pointH.point_at_infinity())

pointH = 0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed * base
self.assertTrue(pointH.point_at_infinity())

pointH = base * 1
self.assertEqual(pointH.x, 9)

Expand Down

0 comments on commit 3b40c32

Please sign in to comment.