summaryrefslogtreecommitdiff
path: root/src/common/des.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-03-13 01:32:32 +0100
committerHaru <haru@dotalux.com>2016-07-12 20:58:32 +0200
commit3a19ceb903629a9ff7ce85f800c1b4fefc8aa2c5 (patch)
tree6d53af669e4ff00876a8e44261a6b9672ad172ee /src/common/des.h
parenta19ecac6d3405652f766eb7b18c7ee6a3270a78b (diff)
downloadhercules-3a19ceb903629a9ff7ce85f800c1b4fefc8aa2c5.tar.gz
hercules-3a19ceb903629a9ff7ce85f800c1b4fefc8aa2c5.tar.bz2
hercules-3a19ceb903629a9ff7ce85f800c1b4fefc8aa2c5.tar.xz
hercules-3a19ceb903629a9ff7ce85f800c1b4fefc8aa2c5.zip
Removed unnecessary typedefs from des.h
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/des.h')
-rw-r--r--src/common/des.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/common/des.h b/src/common/des.h
index e7460e9fd..61cf2c04a 100644
--- a/src/common/des.h
+++ b/src/common/des.h
@@ -23,12 +23,18 @@
#include "common/hercules.h"
+/* Struct definitions */
+
/// One 64-bit block.
-typedef struct BIT64 { uint8_t b[8]; } BIT64;
+struct BIT64 {
+ uint8_t b[8];
+};
+
+/* Interface */
struct des_interface {
- void (*decrypt_block) (BIT64* block);
- void (*decrypt) (unsigned char* data, size_t size);
+ void (*decrypt_block) (struct BIT64 *block);
+ void (*decrypt) (unsigned char *data, size_t size);
};
#ifdef HERCULES_CORE