--- browserid/crypto/m2.py.orig	2014-12-12 06:15:36.000000000 +0100
+++ browserid/crypto/m2.py	2018-10-12 18:55:28.450882271 +0200
@@ -21,6 +21,7 @@
 from browserid.crypto._m2_monkeypatch import m2
 from browserid.crypto._m2_monkeypatch import DSA as _DSA
 from browserid.crypto._m2_monkeypatch import RSA as _RSA
+from browserid.utils import long
 
 
 class Key(object):
@@ -33,7 +34,7 @@
         """Alternative constructor for loading from PEM format data."""
         self = cls.__new__(cls)
         if data is not None:
-            bio = BIO.MemoryBuffer(str(data))
+            bio = BIO.MemoryBuffer(data)
         elif filename is not None:
             bio = BIO.openfile(filename)
         else:
