aboutsummaryrefslogtreecommitdiff
path: root/test/ec/test_model.py
blob: 6effa4593f49dcf7c3e32958567943b0ad3a916a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)