From a2d9b5305d819472a2de7dcf8092fc86e7f46f45 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 5 Oct 2012 18:19:21 -0600 Subject: [PATCH] stream_xsalsa20_xor(): fix little typo which broke this function --- slownacl/salsa20.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slownacl/salsa20.py b/slownacl/salsa20.py index 1448ddf..5008b2c 100644 --- a/slownacl/salsa20.py +++ b/slownacl/salsa20.py @@ -82,4 +82,4 @@ def stream_xsalsa20(l, n, k): return stream_salsa20(l, n[16:], core_hsalsa20(n[:16], k)) def stream_xsalsa20_xor(m, n, k): - return xor(m, stream_xsalsa20_xor(len(m), n, k)) + return xor(m, stream_xsalsa20(len(m), n, k))