From 07b4ee195327392834e3234a305e3ca4912a65f1 Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Sat, 29 Dec 2012 19:40:39 +0100 Subject: [PATCH] fmtseq: drop heads of rc4 keystreams --- src/fmtseq.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fmtseq.cpp b/src/fmtseq.cpp index ebbf737..60abdd5 100644 --- a/src/fmtseq.cpp +++ b/src/fmtseq.cpp @@ -35,6 +35,7 @@ void prepare_keygen (arcfour& kg, const std::vector&SK, uint idx) } tmp.resize (16, 0); //prevent chaining to other numbers kg.load_key (tmp); + kg.discard (256); } static void add_zero_checksum (bvector& v)