From 440010aa593e209ce5993a73b1b7cb0a843a2716 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 25 Jan 2012 16:17:00 -0600 Subject: [PATCH] Fix linear alphabet string errors --- konversation/src/blowfish/b64stuff.cpp | 4 ++-- konversation/src/blowfish/oldblowfish.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/konversation/src/blowfish/b64stuff.cpp b/konversation/src/blowfish/b64stuff.cpp index 79d5e64..72f0776 100644 --- a/konversation/src/blowfish/b64stuff.cpp +++ b/konversation/src/blowfish/b64stuff.cpp @@ -36,10 +36,10 @@ //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- -//static char b64table[64] = "ABCDEFGHIJKLMNOPTQRSTUVWXYZ" +//static char b64table[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" // "abcdefghijklmnopqrstuvwxyz" // "0123456789+/"; -static char b64table[] = "ABCDEFGHIJKLMNOPTQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; +static char b64table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /* Accepts a binary buffer with an associated size. * Returns a base64-encoded, NULL-terminated string. diff --git a/konversation/src/blowfish/oldblowfish.cpp b/konversation/src/blowfish/oldblowfish.cpp index 3eab870..1f274db 100644 --- a/konversation/src/blowfish/oldblowfish.cpp +++ b/konversation/src/blowfish/oldblowfish.cpp @@ -271,7 +271,7 @@ void oldCBlowFish::Decode (BYTE * pInput, BYTE * pOutput, DWORD lSize) #define SALT2 0x23f6b095 // Convert 64-bit encrypted passphrase to text for userfile -char base64[] = "./0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPTQRSTUVWXYZ"; +char base64[] = "./0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; int base64dec(char c) {