diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-10-23 22:15:01 -0700 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-10-23 22:15:01 -0700 |
commit | f281daed0e92dd3d00f9aa2fda6ae41e80a0e1fc (patch) | |
tree | 3fa241f7226a4ee2f8955da5b8f952390401ce79 /tests | |
parent | a05af52d1f0fba90030b62185d38523119d68b42 (diff) | |
parent | 4549ff346b0f5ee133a3af3d1bf56250ae88cd9c (diff) | |
download | cryptography-f281daed0e92dd3d00f9aa2fda6ae41e80a0e1fc.tar.gz cryptography-f281daed0e92dd3d00f9aa2fda6ae41e80a0e1fc.tar.bz2 cryptography-f281daed0e92dd3d00f9aa2fda6ae41e80a0e1fc.zip |
Merge pull request #1433 from alex/match-interface-names
Changed methods on interface providers to have argument names match the interface.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/backends/test_multibackend.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/hazmat/backends/test_multibackend.py b/tests/hazmat/backends/test_multibackend.py index c50b6cf6..39c03146 100644 --- a/tests/hazmat/backends/test_multibackend.py +++ b/tests/hazmat/backends/test_multibackend.py @@ -38,15 +38,15 @@ class DummyCipherBackend(object): def __init__(self, supported_ciphers): self._ciphers = supported_ciphers - def cipher_supported(self, algorithm, mode): - return (type(algorithm), type(mode)) in self._ciphers + def cipher_supported(self, cipher, mode): + return (type(cipher), type(mode)) in self._ciphers - def create_symmetric_encryption_ctx(self, algorithm, mode): - if not self.cipher_supported(algorithm, mode): + def create_symmetric_encryption_ctx(self, cipher, mode): + if not self.cipher_supported(cipher, mode): raise UnsupportedAlgorithm("", _Reasons.UNSUPPORTED_CIPHER) - def create_symmetric_decryption_ctx(self, algorithm, mode): - if not self.cipher_supported(algorithm, mode): + def create_symmetric_decryption_ctx(self, cipher, mode): + if not self.cipher_supported(cipher, mode): raise UnsupportedAlgorithm("", _Reasons.UNSUPPORTED_CIPHER) @@ -92,7 +92,7 @@ class DummyPBKDF2HMACBackend(object): @utils.register_interface(RSABackend) class DummyRSABackend(object): - def generate_rsa_private_key(self, public_exponent, private_key): + def generate_rsa_private_key(self, public_exponent, key_size): pass def rsa_padding_supported(self, padding): |