diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-23 19:26:05 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-23 19:26:05 -0600 |
commit | 8dd9713ae2a69a3e870275c088df08ce2a50dce9 (patch) | |
tree | f78d3bac777b4eec64ecd8d841f93c7aa5355a1b /tests | |
parent | 160e51a207db264c48162b02e22005356100a396 (diff) | |
download | cryptography-8dd9713ae2a69a3e870275c088df08ce2a50dce9.tar.gz cryptography-8dd9713ae2a69a3e870275c088df08ce2a50dce9.tar.bz2 cryptography-8dd9713ae2a69a3e870275c088df08ce2a50dce9.zip |
incorporate review feedback. kwarg!
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/primitives/test_rsa.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py index 14c3acf0..d190ea95 100644 --- a/tests/hazmat/primitives/test_rsa.py +++ b/tests/hazmat/primitives/test_rsa.py @@ -397,7 +397,16 @@ class TestRSASignature(object): ) def test_pkcs1v15_signing(self, pkcs1_example, backend): private, public, example = pkcs1_example - private_key = rsa.RSAPrivateKey(**private) + private_key = rsa.RSAPrivateKey( + p=private["p"], + q=private["q"], + private_exponent=private["private_exponent"], + dmp1=private["dmp1"], + dmq1=private["dmq1"], + iqmp=private["iqmp"], + public_exponent=private["public_exponent"], + modulus=private["modulus"] + ) signer = private_key.signer(padding.PKCS1(), hashes.SHA1(), backend) signer.update(binascii.unhexlify(example["message"])) signature = signer.finalize() |