summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Encrypt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Encrypt.cpp')
-rw-r--r--Stars45/Encrypt.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Stars45/Encrypt.cpp b/Stars45/Encrypt.cpp
index 48ffcdf..176d7d0 100644
--- a/Stars45/Encrypt.cpp
+++ b/Stars45/Encrypt.cpp
@@ -80,7 +80,7 @@ static void decypher(long* v)
sum=delta<<5;
while (n-->0) {
- z-= (y<<4)+k[2] ^ y+sum ^ (y>>5)+k[3];
+ z-= (y<<4)+k[2] ^ y+sum ^ (y>>5)+k[3];
y-= (z<<4)+k[0] ^ z+sum ^ (z>>5)+k[1];
sum-=delta;
}
@@ -91,7 +91,7 @@ static void decypher(long* v)
// +-------------------------------------------------------------------+
-Text
+Text
Encryption::Encrypt(Text block)
{
int len = block.length();
@@ -123,7 +123,7 @@ Encryption::Encrypt(Text block)
// +-------------------------------------------------------------------+
-Text
+Text
Encryption::Decrypt(Text block)
{
int len = block.length();
@@ -151,7 +151,7 @@ Encryption::Decrypt(Text block)
static const char* codes = "abcdefghijklmnop";
-Text
+Text
Encryption::Encode(Text block)
{
int len = block.length() * 2;
@@ -172,7 +172,7 @@ Encryption::Encode(Text block)
// +-------------------------------------------------------------------+
-Text
+Text
Encryption::Decode(Text block)
{
int len = block.length() / 2;