diff options
| author | J08nY | 2025-03-20 10:01:50 +0100 |
|---|---|---|
| committer | J08nY | 2025-03-20 10:01:50 +0100 |
| commit | 3169390d69e41ba07f7825efc78c86284f3cb4e1 (patch) | |
| tree | 3d8e6f8e057b98adbee0196f3810c6c657129794 /pyecsca/ec | |
| parent | 49ea01816d5e4acaa8996da04072936206bbb58f (diff) | |
| download | pyecsca-3169390d69e41ba07f7825efc78c86284f3cb4e1.tar.gz pyecsca-3169390d69e41ba07f7825efc78c86284f3cb4e1.tar.zst pyecsca-3169390d69e41ba07f7825efc78c86284f3cb4e1.zip | |
Diffstat (limited to 'pyecsca/ec')
| -rw-r--r-- | pyecsca/ec/mod/base.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyecsca/ec/mod/base.py b/pyecsca/ec/mod/base.py index f5aab09..b7aa48a 100644 --- a/pyecsca/ec/mod/base.py +++ b/pyecsca/ec/mod/base.py @@ -262,6 +262,9 @@ class Mod: def __str__(self): return str(self.x) + def __format__(self, format_spec): + return format(int(self), format_spec) + @public class Undefined(Mod): |
