From fe9b82d1526113f6f08e5de9b8d5e75ab1527bbd Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 9 Sep 2013 22:09:21 -0500 Subject: add ECB support to create_block_cipher_context * This is a basic refactor to support ECB and CBC mode in this method. We can use this as a starting point to discuss a better solution. --- tests/bindings/test_openssl.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/bindings/test_openssl.py b/tests/bindings/test_openssl.py index 1579f002..e4b73460 100644 --- a/tests/bindings/test_openssl.py +++ b/tests/bindings/test_openssl.py @@ -11,6 +11,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +import pytest + from cryptography.bindings.openssl import api @@ -28,3 +30,7 @@ class TestOpenSSL(object): for every OpenSSL. """ assert api.openssl_version_text().startswith("OpenSSL") + + def test_get_iv_invalid_mode(self): + with pytest.raises(NotImplementedError): + api._get_iv(None) -- cgit v1.2.3