diff options
Diffstat (limited to 'src/common/des.h')
-rw-r--r-- | src/common/des.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/common/des.h b/src/common/des.h index d62b5cc49..e7460e9fd 100644 --- a/src/common/des.h +++ b/src/common/des.h @@ -2,7 +2,7 @@ * This file is part of Hercules. * http://herc.ws - http://github.com/HerculesWS/Hercules * - * Copyright (C) 2012-2015 Hercules Dev Team + * Copyright (C) 2012-2016 Hercules Dev Team * Copyright (C) Athena Dev Teams * * Hercules is free software: you can redistribute it and/or modify @@ -21,14 +21,20 @@ #ifndef COMMON_DES_H #define COMMON_DES_H -#include "common/cbasetypes.h" +#include "common/hercules.h" /// One 64-bit block. typedef struct BIT64 { uint8_t b[8]; } BIT64; +struct des_interface { + void (*decrypt_block) (BIT64* block); + void (*decrypt) (unsigned char* data, size_t size); +}; + #ifdef HERCULES_CORE -void des_decrypt_block(BIT64* block); -void des_decrypt(unsigned char* data, size_t size); +void des_defaults(void); #endif // HERCULES_CORE +HPShared struct des_interface *des; + #endif // COMMON_DES_H |