diff options
| author | J08nY | 2023-10-14 22:18:04 +0200 |
|---|---|---|
| committer | J08nY | 2023-10-14 22:18:04 +0200 |
| commit | 883e5b00dd6b52264d68da66d8b9268f227a8752 (patch) | |
| tree | 54cbaaccda18b129a0939c9f52bd2942374cad05 /test/ec/test_params.py | |
| parent | f1993d49f2ed28cacf5537410c0db99dc8bdeaeb (diff) | |
| download | pyecsca-883e5b00dd6b52264d68da66d8b9268f227a8752.tar.gz pyecsca-883e5b00dd6b52264d68da66d8b9268f227a8752.tar.zst pyecsca-883e5b00dd6b52264d68da66d8b9268f227a8752.zip | |
Make stuff picklable.
Fixes #45.
Diffstat (limited to 'test/ec/test_params.py')
| -rw-r--r-- | test/ec/test_params.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ec/test_params.py b/test/ec/test_params.py index ceaef48..2163684 100644 --- a/test/ec/test_params.py +++ b/test/ec/test_params.py @@ -1,3 +1,5 @@ +import pickle + from importlib_resources import files, as_file import pytest @@ -142,3 +144,7 @@ def test_custom_params(): assert params is not None res = params.curve.affine_double(generator.to_affine()) assert res is not None + + +def test_pickle(secp128r1): + assert secp128r1 == pickle.loads(pickle.dumps(secp128r1)) |
