summaryrefslogtreecommitdiff
path: root/src/common/des.h
diff options
context:
space:
mode:
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