summaryrefslogtreecommitdiff
path: root/src/common/grfio.c
diff options
context:
space:
mode:
authorhemagx <hemagx2@gmail.com>2016-02-17 14:01:22 +0200
committerHaru <haru@dotalux.com>2016-07-12 20:58:31 +0200
commita19ecac6d3405652f766eb7b18c7ee6a3270a78b (patch)
treee4caf7d3cead26529b412dd207275c4c45e239fb /src/common/grfio.c
parent4b8dd1cdaadba7ae2200f114a4e11ef62454eaa1 (diff)
downloadhercules-a19ecac6d3405652f766eb7b18c7ee6a3270a78b.tar.gz
hercules-a19ecac6d3405652f766eb7b18c7ee6a3270a78b.tar.bz2
hercules-a19ecac6d3405652f766eb7b18c7ee6a3270a78b.tar.xz
hercules-a19ecac6d3405652f766eb7b18c7ee6a3270a78b.zip
Interface des.c
Diffstat (limited to 'src/common/grfio.c')
-rw-r--r--src/common/grfio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/grfio.c b/src/common/grfio.c
index c6e47d357..c24f2aee5 100644
--- a/src/common/grfio.c
+++ b/src/common/grfio.c
@@ -162,7 +162,7 @@ static void grf_decode_header(unsigned char* buf, size_t len)
// first 20 blocks are all des-encrypted
for( i = 0; i < 20 && i < nblocks; ++i )
- des_decrypt_block(&p[i]);
+ des->decrypt_block(&p[i]);
// the rest is plaintext, done.
}
@@ -176,7 +176,7 @@ static void grf_decode_full(unsigned char* buf, size_t len, int cycle)
// first 20 blocks are all des-encrypted
for( i = 0; i < 20 && i < nblocks; ++i )
- des_decrypt_block(&p[i]);
+ des->decrypt_block(&p[i]);
// after that only one of every 'dcycle' blocks is des-encrypted
dcycle = cycle;
@@ -190,7 +190,7 @@ static void grf_decode_full(unsigned char* buf, size_t len, int cycle)
{
if( i % dcycle == 0 )
{// decrypt block
- des_decrypt_block(&p[i]);
+ des->decrypt_block(&p[i]);
continue;
}
@@ -504,7 +504,7 @@ static char* decode_filename(unsigned char* buf, int len)
int lop;
for(lop=0;lop<len;lop+=8) {
NibbleSwap(&buf[lop],8);
- des_decrypt(&buf[lop],8);
+ des->decrypt(&buf[lop],8);
}
return (char*)buf;
}