Skip to content
Snippets Groups Projects
Commit c90fe215 authored by David Fischer's avatar David Fischer Committed by Donald Stufft
Browse files

Fixed issue getting raw keys with Py3

parent 7e8e5a66
No related branches found
No related tags found
No related merge requests found
...@@ -110,8 +110,8 @@ class Box(encoding.Encodable, six.StringFixer, object): ...@@ -110,8 +110,8 @@ class Box(encoding.Encodable, six.StringFixer, object):
NONCE_SIZE = nacl.lib.crypto_box_NONCEBYTES NONCE_SIZE = nacl.lib.crypto_box_NONCEBYTES
def __init__(self, public_key, private_key): def __init__(self, public_key, private_key):
self._pk = str(public_key) self._pk = public_key._public_key
self._sk = str(private_key) self._sk = private_key._private_key
self._shared_key = None self._shared_key = None
def __bytes__(self): def __bytes__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment