From b458dbb4e77b52d2ec600816520ac2e997cb47f3 Mon Sep 17 00:00:00 2001 From: Angel Ortega Date: Wed, 21 Dec 2011 17:30:46 +0100 Subject: [PATCH] Updated a6 ideas. --- misc/art6_ideas.txt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/misc/art6_ideas.txt b/misc/art6_ideas.txt index a0a187c..ee2bfb9 100644 --- a/misc/art6_ideas.txt +++ b/misc/art6_ideas.txt @@ -663,17 +663,24 @@ ARCfour =(j, &(+(j, .(S, i)), 0xff)) /* t = S[i]; S[i] = S[j]; S[j] = t; */ =(t, .(S, i)) =(.(S, i), .(S, j)) =(.(S, j), t) - /* t = (S[i] + S(j)) & 0xff; */ - =(t, &(+(.(S, i), .(S, j)) & 0xff)) + /* t = (S[i] + S[j]) & 0xff; */ + =(t, &(+(.(S, i), .(S, j)), 0xff)) /* K = S[t]; */ =(K, .(S, t)) } ) - ['i\000[['i\000'1\000+'0xff\000&=Z + +=(i, and(add(i, 1), 0xff)) +i = and(add(i, 1), 0xff) + + ['i\000[['i\000$'1\000+'0xff\000&=Z ['K\000['S\000't\000$.= ['arcfour_byte\000{['i\000[['i\000'1\000+'0xff\000&=Z'S\000't\000$.}=Z -=c(^(get_char(f), arcfour_byte())) +=(c,^(get_char(f), arcfour_byte())) ['c\000[['f\000$'get_char\000$&['arcfour_byte\000$&^=Z + +=(.(S, j), t) +=(S, j, t) -- 2.11.4.GIT