From 0edf7993c66bf8e78803d771d49f5e214dbe3815 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 19 Jul 2016 21:12:59 +0200 Subject: Enforce that p > q to improve OpenSSL compatibility (fixes #2990) (#3010) --- docs/hazmat/primitives/asymmetric/rsa.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/hazmat') diff --git a/docs/hazmat/primitives/asymmetric/rsa.rst b/docs/hazmat/primitives/asymmetric/rsa.rst index 4cf9fa78..10e48b4a 100644 --- a/docs/hazmat/primitives/asymmetric/rsa.rst +++ b/docs/hazmat/primitives/asymmetric/rsa.rst @@ -509,7 +509,9 @@ this without having to do the math themselves. .. note:: When recovering prime factors this algorithm will always return ``p`` - and ``q`` such that ``p < q``. + and ``q`` such that ``p > q``. Note: before 1.5, this function always + returned ``p`` and ``q`` such that ``p < q``. It was changed because + libraries commonly require ``p > q``. :return: A tuple ``(p, q)`` -- cgit v1.2.3