aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-06-11 23:12:50 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-06-11 23:12:50 -0500
commit8f568e0b29e7f734b0e18fe136b6dcad4bf9dc83 (patch)
tree934344e8dfaf18c8ff649d2230b3edd384116c5b
parenta19fb7c24fd3192c5459a6cbb20430b1c14d7880 (diff)
downloadcryptography-8f568e0b29e7f734b0e18fe136b6dcad4bf9dc83.tar.gz
cryptography-8f568e0b29e7f734b0e18fe136b6dcad4bf9dc83.tar.bz2
cryptography-8f568e0b29e7f734b0e18fe136b6dcad4bf9dc83.zip
indent the proper amount
-rw-r--r--cryptography/hazmat/primitives/asymmetric/rsa.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/cryptography/hazmat/primitives/asymmetric/rsa.py b/cryptography/hazmat/primitives/asymmetric/rsa.py
index 4f4e257b..a4e6cb71 100644
--- a/cryptography/hazmat/primitives/asymmetric/rsa.py
+++ b/cryptography/hazmat/primitives/asymmetric/rsa.py
@@ -83,14 +83,14 @@ def _check_private_key_components(p, q, private_exponent, dmp1, dmq1, iqmp,
def _check_public_key_components(e, n):
- if n < 3:
- raise ValueError("n must be >= 3.")
+ if n < 3:
+ raise ValueError("n must be >= 3.")
- if e < 3 or e >= n:
- raise ValueError("e must be >= 3 and < n.")
+ if e < 3 or e >= n:
+ raise ValueError("e must be >= 3 and < n.")
- if e & 1 == 0:
- raise ValueError("e must be odd.")
+ if e & 1 == 0:
+ raise ValueError("e must be odd.")
@utils.register_interface(interfaces.RSAPublicKey)