aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509/extensions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py
index 6301af5a..fc5c17a9 100644
--- a/src/cryptography/x509/extensions.py
+++ b/src/cryptography/x509/extensions.py
@@ -43,7 +43,7 @@ def _key_identifier_from_public_key(public_key):
serialization.PublicFormat.SubjectPublicKeyInfo
)
- data = six.binary_type(PublicKeyInfo.load(serialized)['public_key'])
+ data = bytes(PublicKeyInfo.load(serialized)['public_key'])
return hashlib.sha1(data).digest()