diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2016-07-19 21:12:59 +0200 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-07-19 14:12:59 -0500 |
commit | 0edf7993c66bf8e78803d771d49f5e214dbe3815 (patch) | |
tree | dabba8ea4d2a1ae27b4275a68bef2d8ac57978c5 /docs/hazmat/primitives | |
parent | 6868b1f01904270b286a4bf9dbb355e792df8f36 (diff) | |
download | cryptography-0edf7993c66bf8e78803d771d49f5e214dbe3815.tar.gz cryptography-0edf7993c66bf8e78803d771d49f5e214dbe3815.tar.bz2 cryptography-0edf7993c66bf8e78803d771d49f5e214dbe3815.zip |
Enforce that p > q to improve OpenSSL compatibility (fixes #2990) (#3010)
Diffstat (limited to 'docs/hazmat/primitives')
-rw-r--r-- | docs/hazmat/primitives/asymmetric/rsa.rst | 4 |
1 files changed, 3 insertions, 1 deletions
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)`` |