aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_encoding.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_encoding.py')
-rw-r--r--test/test_encoding.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_encoding.py b/test/test_encoding.py
index 0684945..f4fc7fa 100644
--- a/test/test_encoding.py
+++ b/test/test_encoding.py
@@ -1,11 +1,11 @@
-from pyecsca.ec.mod import Mod
+from pyecsca.ec.mod import mod
from pyecsca.codegen.client import encode_data, decode_data, encode_scalar
def test_encode_decode():
data = {
"a": encode_scalar(0xCAFEBABE),
- "b": {"c": encode_scalar(Mod(1, 3)), "d": bytes([0x2])},
+ "b": {"c": encode_scalar(mod(1, 3)), "d": bytes([0x2])},
}
encoded = encode_data(None, data)
result = decode_data(encoded)