bytestring.c: Implement indexing, slicing, concatenation and repeating.
[catacomb-python] / catacomb / __init__.py
index 8177b2d..02e19d3 100644 (file)
@@ -292,7 +292,7 @@ def secret_box(k, n, m):
   s = E.enczero(poly1305.masksz)
   y = E.encrypt(m)
   t = poly1305(r)(s).hash(y).done()
-  return ByteString(t + y)
+  return t + y
 
 def secret_unbox(k, n, c):
   E = xsalsa20(k).setiv(n)