Skip to content
Snippets Groups Projects
Commit 1f86cedf authored by Brian Warner's avatar Brian Warner
Browse files

Merge pull request #59 from teepark/master

fix the 'wrong keysize' error

closes #59
parents 0263d521 51f58e7b
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ class SecretBox(encoding.Encodable, StringFixer, object):
if len(key) != self.KEY_SIZE:
raise ValueError(
"The key must be exactly %s bytes long" %
nacl.lib.crypto_secretbox_KEYBYTES,
self.KEY_SIZE,
)
self._key = key
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment