summaryrefslogtreecommitdiffstats
path: root/src/modules/rijndael/libkvirijndael.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
commit0a80cfd57d271dd44221467efb426675fa470356 (patch)
tree6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/modules/rijndael/libkvirijndael.cpp
parent3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff)
downloadkvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz
kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/modules/rijndael/libkvirijndael.cpp')
-rw-r--r--src/modules/rijndael/libkvirijndael.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/rijndael/libkvirijndael.cpp b/src/modules/rijndael/libkvirijndael.cpp
index 0a678437..07f37afe 100644
--- a/src/modules/rijndael/libkvirijndael.cpp
+++ b/src/modules/rijndael/libkvirijndael.cpp
@@ -46,7 +46,7 @@
on the Advanced Encryptiong Standard algorithm called Rijndael. Rijndael was
originally written by Joan Daemen and Vincent Rijmen. The original Rijndael
description is available at http://www.esat.kuleuven.ac.be/~rijmen/rijndael/.[br]
- It is a private key block cipher that has been designed to replace
+ It is a private key block cipher that has been designed to tqreplace
the widely used DES, and it should provide at leas a decent security agains
common attacks. Theoretically the best attack that one can perform on this cipher
is the "brute force" attack that requires a really massive parallel computation:
@@ -471,7 +471,7 @@
*/
}
- static unsigned char fake_base64[]="./0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
+ static unsigned char fake_base64[]="./0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPTQRSTUVWXYZ";
unsigned int fake_base64dec(unsigned char c)
{
@@ -538,9 +538,9 @@
unsigned char * p = (unsigned char *)encoded.ptr();
while(outb < oute)
{
- Q_UINT32 * dd1 = (Q_UINT32 *)outb;
+ TQ_UINT32 * dd1 = (TQ_UINT32 *)outb;
outb += 4;
- Q_UINT32 * dd2 = (Q_UINT32 *)outb;
+ TQ_UINT32 * dd2 = (TQ_UINT32 *)outb;
outb += 4;
*p++ = fake_base64[*dd2 & 0x3f]; *dd2 >>= 6;
*p++ = fake_base64[*dd2 & 0x3f]; *dd2 >>= 6;
@@ -585,9 +585,9 @@
unsigned char * bufp = buf;
while(p < e)
{
- Q_UINT32 * dw1 = (Q_UINT32 *)bufp;
+ TQ_UINT32 * dw1 = (TQ_UINT32 *)bufp;
bufp += 4;
- Q_UINT32 * dw2 = (Q_UINT32 *)bufp;
+ TQ_UINT32 * dw2 = (TQ_UINT32 *)bufp;
bufp += 4;
*dw2 = 0;
for(i=0;i < 6;i++)*dw2 |= (fake_base64dec(*p++)) << (i * 6);