diff options
Diffstat (limited to 'test/ec/test_naf.py')
| -rw-r--r-- | test/ec/test_naf.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ec/test_naf.py b/test/ec/test_naf.py new file mode 100644 index 0000000..c87c03f --- /dev/null +++ b/test/ec/test_naf.py @@ -0,0 +1,10 @@ +from unittest import TestCase + +from pyecsca.ec.naf import naf, wnaf + + +class NafTests(TestCase): + + def test_nafs(self): + i = 0b1100110101001101011011 + self.assertListEqual(naf(i), wnaf(i, 2)) |
