From 0c07fecd9cdc20a02f07bf602f0d7cba17927d16 Mon Sep 17 00:00:00 2001 From: micio Date: Sun, 10 Oct 2010 07:44:53 +0000 Subject: [PATCH] Bazaar/CypherTest : fixed to match changes in Cypher package git-svn-id: svn://ultimatepp.org/upp/trunk@2761 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/CypherTest/CypherTest.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bazaar/CypherTest/CypherTest.cpp b/bazaar/CypherTest/CypherTest.cpp index 31ef0204b..c334a586c 100644 --- a/bazaar/CypherTest/CypherTest.cpp +++ b/bazaar/CypherTest/CypherTest.cpp @@ -80,17 +80,17 @@ void CypherTest::onGo() String s = LoadFile(~sourceEdit); // encode it choosing requested encoder - OneCypher; + One cypher; switch(cypherSwitch) { // snow2 Cypher case 0: - Cypher = new Snow2; + cypher = new Snow2; break; // RC4 Cypher case 1: - Cypher = new RC4; + cypher = new RC4; break; default: PromptOK("Unsupported Cypher"); @@ -99,14 +99,14 @@ void CypherTest::onGo() String d; // sets Cypher's key - Cypher->SetKey(key, "12345"); + cypher->SetKey(key, "12345"); if(streamSwitch == 0) { // buffer mode if(splitSwitch == 0) { - d = (*Cypher)(s); + d = (*cypher)(s); } else { @@ -119,7 +119,7 @@ void CypherTest::onGo() String ss = s.Left(rnd); s = s.Right(len - rnd); len = s.GetCount(); - d += (*Cypher)(ss); + d += (*cypher)(ss); } } } @@ -128,8 +128,8 @@ void CypherTest::onGo() // stream mode if(splitSwitch == 0) { - (*Cypher) << s; - (*Cypher) >> d; + (*cypher) << s; + (*cypher) >> d; } else { @@ -142,9 +142,9 @@ void CypherTest::onGo() String ss = s.Left(rnd); s = s.Right(len - rnd); len = s.GetCount(); - (*Cypher) << ss; + (*cypher) << ss; } - (*Cypher) >> d; + (*cypher) >> d; } }