| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Since explicit curve parameters may not use prime numbers as the field
(see CVE-2022-0778), make sure that our square_root_mod_prime()
handles non-prime p gracefully
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There are small typos in:
- src/ecdsa/ellipticcurve.py
- src/ecdsa/numbertheory.py
- src/ecdsa/test_malformed_sigs.py
- versioneer.py
Fixes:
- Should read `support` rather than `suport`.
- Should read `languages` rather than `langauges`.
- Should read `internally` rather than `interanlly`.
- Should read `arbitrarily` rather than `arbitrarly`.
|
|
|
|
| |
remove unused imports, bad assert methods, unused variables etc.
|
| |
|
| |
|
|
|
|
|
| |
the builtin pow() can handle negative powers on python 3.8 and later,
so do use it
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
since on older distros like CentOS 6 there is python-gmpy but not
python-gmpy2, support gmpy too
|
| |
|
|\
| |
| | |
Minor speed-up
|
| |
| |
| |
| |
| |
| | |
since the divmod() is comparatively expensive, and inverse_mod()
is extensively used, use a slightly different implementation that
doesn't use it
|
|/ |
|
|
|
|
|
| |
the function is just a wrapper around pow() builtin, so don't use
it, mark it deprecated, exclude from coverage (as we're not testing it)
|
|
|
|
|
| |
There are few pure-maths methods that are unused by the library code,
mark them deprecated so that we can remove them in the future
|
|
|
|
|
|
| |
Adds support for encoding and decoding verifying keys in format
specified in SEC 1 or in X9.62. Specifically the uncompressed point
encoding and the compressed point encoding
|
| |
|
| |
|
|
|