Skip to content

Commit b738e66

Browse files
joostrijneveldsybrenstuvel
authored andcommitted
Remove keysize requirements / recommendations
This library is probably not the right place to recommend key sizes or have discussions about the relation between key sizes and hash function outputs.
1 parent 2a020f3 commit b738e66

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

doc/usage.rst

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -90,32 +90,6 @@ generate them for you, then load them in your Python code. OpenSSL
9090
generates a 4096-bit key in 3.5 seconds on the same machine as used
9191
above. See :ref:`openssl` for more information.
9292

93-
Key size requirements
94-
---------------------
95-
96-
Python-RSA version 3.0 introduced PKCS#1-style random padding. This
97-
means that 11 bytes (88 bits) of your key are no longer usable for
98-
encryption, so keys smaller than this are unusable. The larger the
99-
key, the higher the security.
100-
101-
Creating signatures also requires a key of a certain size, depending
102-
on the used hash method:
103-
104-
+-------------+-----------------------------------+
105-
| Hash method | Suggested minimum key size (bits) |
106-
+=============+===================================+
107-
| MD5 | 360 |
108-
+-------------+-----------------------------------+
109-
| SHA-1 | 368 |
110-
+-------------+-----------------------------------+
111-
| SHA-256 | 496 |
112-
+-------------+-----------------------------------+
113-
| SHA-384 | 624 |
114-
+-------------+-----------------------------------+
115-
| SHA-512 | 752 |
116-
+-------------+-----------------------------------+
117-
118-
11993

12094
Encryption and decryption
12195
-------------------------

0 commit comments

Comments
 (0)