diff options
author | hemagx <hemagx2@gmail.com> | 2016-02-17 14:01:22 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-07-12 20:58:31 +0200 |
commit | a19ecac6d3405652f766eb7b18c7ee6a3270a78b (patch) | |
tree | e4caf7d3cead26529b412dd207275c4c45e239fb /src/common/des.h | |
parent | 4b8dd1cdaadba7ae2200f114a4e11ef62454eaa1 (diff) | |
download | hercules-a19ecac6d3405652f766eb7b18c7ee6a3270a78b.tar.gz hercules-a19ecac6d3405652f766eb7b18c7ee6a3270a78b.tar.bz2 hercules-a19ecac6d3405652f766eb7b18c7ee6a3270a78b.tar.xz hercules-a19ecac6d3405652f766eb7b18c7ee6a3270a78b.zip |
Interface des.c
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 |