summaryrefslogtreecommitdiff
path: root/M2Crypto/RSA.py
diff options
context:
space:
mode:
Diffstat (limited to 'M2Crypto/RSA.py')
-rw-r--r--M2Crypto/RSA.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/M2Crypto/RSA.py b/M2Crypto/RSA.py
index c1d18cd..1292e1d 100644
--- a/M2Crypto/RSA.py
+++ b/M2Crypto/RSA.py
@@ -180,6 +180,9 @@ class RSA(object):
def check_key(self):
# type: () -> int
"""
+ Validate RSA keys.
+
+ It checks that p and q are in fact prime, and that n = p*q.
:return: returns 1 if rsa is a valid RSA key, and 0 otherwise.
-1 is returned if an error occurs while checking the key.