Commit graph

15 commits

Author SHA1 Message Date
Helder Eijs
3b20e96ffa Add PYCRYPTODOME_DISABLE_GMP flag and simplify to_bytes() for GMP 2024-01-13 18:41:36 +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
Helder Eijs
066b8969ee More cleanup 2018-10-16 22:09:53 +02:00
Helder Eijs
cf1b0387b1 Detect GMP libraries with mismatching symbols 2018-02-17 00:25:35 +01:00
Helder Eijs
7b1249e718 Add custom implementation for modexp 2018-01-22 00:41:09 +01:00
Legrandin
5d77e73d72 Clean up DSA tests 2016-01-07 23:46:02 +01:00
Legrandin
8e4d6f3518 Update to API documentation. 2015-03-13 20:35:37 +01:00
Legrandin
79ae1d2756 Numbers._implementation refers to library and API 2015-02-11 15:11:58 +00:00
Legrandin
92d6fc6c08 Explicitly export symbols on Windows 2015-02-02 22:18:02 +01:00
Legrandin
0d0e37a6f0 random_range takes only explicit keywords args 2014-12-06 12:04:12 +01:00
Legrandin
2e40ae0f14 Change Math.Numbers.Natural into Integer 2014-12-06 12:04:10 +01:00
Legrandin
36bec9d410 Added more methods to Natural
Methods and operators added:
* random()
* and
* comparison
* bool
* in-place right shift
* size_in_bits()
* str
* is_even()
* is_odd()
2014-12-06 12:04:10 +01:00
Legrandin
4969bd2b66 Unit test will cover both Natural implementations 2014-12-06 12:04:10 +01:00
Legrandin
87e2f82965 Initial support for GMP 2014-12-06 12:04:10 +01:00
Legrandin
6f310bc021 First implementation based on int 2014-12-06 12:04:10 +01:00