commit | 3829bc2580491cd69981898dc66e67f16b5a28c4 | [log] [tgz] |
---|---|---|
author | Alex Stapleton <alexs@prol.etari.at> | Wed Feb 05 19:53:36 2014 +0000 |
committer | Alex Stapleton <alexs@prol.etari.at> | Wed Feb 05 19:53:36 2014 +0000 |
tree | 4a8827fdd812efd563714834e5954621df278896 | |
parent | 5d17ab3b354fe96e94689ad012163f42cc598a27 [diff] |
Check p*q=n in the tests
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py index c725c5f..87d3973 100644 --- a/tests/hazmat/primitives/test_rsa.py +++ b/tests/hazmat/primitives/test_rsa.py
@@ -50,6 +50,8 @@ assert skey.key_size == pkey.key_size assert skey.key_size == pkey2.key_size + assert skey.p * skey.q == skey.modulus + def test_invalid_argument_types(self): with pytest.raises(TypeError): rsa.RSAPrivateKey(None, None, None, None, None)