Skip to content
Snippets Groups Projects
Commit 51f58e7b authored by Travis J Parker's avatar Travis J Parker Committed by Brian Warner
Browse files

fix the 'wrong keysize' error

parent 0263d521
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ class SecretBox(encoding.Encodable, StringFixer, object): ...@@ -49,7 +49,7 @@ class SecretBox(encoding.Encodable, StringFixer, object):
if len(key) != self.KEY_SIZE: if len(key) != self.KEY_SIZE:
raise ValueError( raise ValueError(
"The key must be exactly %s bytes long" % "The key must be exactly %s bytes long" %
nacl.lib.crypto_secretbox_KEYBYTES, self.KEY_SIZE,
) )
self._key = key self._key = key
......
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