diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2018-05-12 07:44:37 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2018-05-12 07:44:37 -0400 |
commit | 6e9f9767368b4b02386e294ec9baf8102184bf88 (patch) | |
tree | af9fd11a28e5c3f000262b94e8fd175c23aff6bc /tests/test_crypto.py | |
parent | 373926ce8cb799c252dd98bf6f24e100f73689a8 (diff) | |
download | pyopenssl-git-6e9f9767368b4b02386e294ec9baf8102184bf88.tar.gz |
Increase the size of RSA key used in tests for OpenSSL 1.1.1 (#750)
* Increase the size of RSA key used in tests for OpenSSL 1.1.1
* here too
* In test_ssl.py as well
Diffstat (limited to 'tests/test_crypto.py')
-rw-r--r-- | tests/test_crypto.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_crypto.py b/tests/test_crypto.py index 5642120..d1c261b 100644 --- a/tests/test_crypto.py +++ b/tests/test_crypto.py @@ -573,7 +573,7 @@ def x509_data(): """ # Basic setup stuff to generate a certificate pkey = PKey() - pkey.generate_key(TYPE_RSA, 384) + pkey.generate_key(TYPE_RSA, 512) req = X509Req() req.set_pubkey(pkey) # Authority good you have. @@ -917,7 +917,7 @@ class TestPKey(object): `PKey.generate_key` generates an RSA key when passed `TYPE_RSA` as a type and a reasonable number of bits. """ - bits = 128 + bits = 512 key = PKey() key.generate_key(TYPE_RSA, bits) assert key.type() == TYPE_RSA |