aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_encoding.py
diff options
context:
space:
mode:
authorJ08nY2024-07-17 15:30:25 +0200
committerJ08nY2024-07-17 15:30:25 +0200
commit33027a201236e6e4aad2d7d637aed85a4f762021 (patch)
tree791faec5053905cdd1b5f473560eaea3c9215f5d /test/test_encoding.py
parentd429a996d64e8f8df552ae4a34a04189dc9b82c4 (diff)
downloadpyecsca-codegen-33027a201236e6e4aad2d7d637aed85a4f762021.tar.gz
pyecsca-codegen-33027a201236e6e4aad2d7d637aed85a4f762021.tar.zst
pyecsca-codegen-33027a201236e6e4aad2d7d637aed85a4f762021.zip
Document the scripts.
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)