crypto.math module utils: add some tests, fix quick_is_not_prime() for small primes (#733)

* Fix quick_is_not_prime() for small primes. Add some tests.

* Fix return value of convert_int_to_bytes(0, 0) on Python 2.

* Add some more test cases.

* Simplify the changelog and point out that these errors only happen for cases not happening in regular use.
This commit is contained in:
Felix Fontein
2024-04-29 08:50:28 +02:00
committed by GitHub
parent d71637c77d
commit 0c62837296
3 changed files with 117 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
bugfixes:
- "crypto.math module utils - change return values for ``quick_is_not_prime()`` and ``convert_int_to_bytes(0, 0)`` for special cases that do not appear when using the collection (https://github.com/ansible-collections/community.crypto/pull/733)."