blob: d1c03c3ce03c86dae6a561cbbf2a5afce4f4822b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
from unittest import TestCase
from pyecsca.ec.model import (
ShortWeierstrassModel,
MontgomeryModel,
EdwardsModel,
TwistedEdwardsModel,
)
class CurveModelTests(TestCase):
def test_load(self):
self.assertGreater(len(ShortWeierstrassModel().coordinates), 0)
self.assertGreater(len(MontgomeryModel().coordinates), 0)
self.assertGreater(len(EdwardsModel().coordinates), 0)
self.assertGreater(len(TwistedEdwardsModel().coordinates), 0)
|