Dan Ristea
4fd3013fd2
Update native get_bit implementation to return bool
...
The native implementation of `get_bit` returned 0/1 as int while the GMP implementation and the type hint say `get_bit` returns a bool. Wrapped the result to align the three.
2025-05-25 12:57:08 +02:00
Helder Eijs
afb5e27a15
Fix side-channel leakage in RSA decryption
2023-12-25 01:30:40 +01:00
Helder Eijs
a31d1634b0
Always use native method bit_length() for integers
2022-12-12 20:36:36 +01:00
Helder Eijs
766730480e
Use Python's own gcd() when available
2022-12-12 20:29:13 +01:00
Helder Eijs
fc70572ec1
GH#598: fix missing error handling for Util.number.inverse
2022-12-12 15:05:04 +01:00
oittaa
c75a5fd557
n must be odd for the Jacobi symbol
2022-06-05 20:48:20 +02:00
Helder Eijs
764c1e81b9
Add Ed25519 keys and EdDSA signatures
2022-05-08 22:35:37 +02:00
Helder Eijs
85718ab980
Add support for left multiplication of an EC point by a scalar
2019-08-26 23:02:40 +02:00
Helder Eijs
4c4241ab52
Use __index__() with Python 3
2019-02-11 13:33:58 +01:00
Helder Eijs
9583c3b8d8
Allow hex() on custom integers
2019-02-11 12:12:41 +01:00
Helder Eijs
fa933ab29e
Make mypy test pass
...
In the process, refactor Crypto.Math to make use of inheritance.
2018-11-23 23:07:14 +01:00