aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography/bindings/openssl/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'cryptography/bindings/openssl/api.py')
-rw-r--r--cryptography/bindings/openssl/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptography/bindings/openssl/api.py b/cryptography/bindings/openssl/api.py
index ced2cf89..d5a319c9 100644
--- a/cryptography/bindings/openssl/api.py
+++ b/cryptography/bindings/openssl/api.py
@@ -29,7 +29,7 @@ class GetCipherByName(object):
def __call__(self, api, cipher, mode):
cipher_name = self._fmt.format(cipher=cipher, mode=mode).lower()
- return api.lib.EVP_get_cipherbyname(cipher_name)
+ return api.lib.EVP_get_cipherbyname(cipher_name.encode("ascii"))
class API(object):