changeset 227:5f9de1d542ee

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 16 Feb 2016 12:02:17 +0200
parents e4d6bba7d7a4
children ca9cd98dbcff
files th_crypto.h
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/th_crypto.h	Tue Feb 16 12:00:18 2016 +0200
+++ b/th_crypto.h	Tue Feb 16 12:02:17 2016 +0200
@@ -22,6 +22,9 @@
 #endif
 
 
+#define TH_MD5HASH_LENGTH       (16)
+#define TH_MD5HASH_LENGTH_CH    (TH_MD5HASH_LENGTH * 2)
+
 typedef struct
 {
     uint32_t bits[2];    // Message length in bits, lsw first
@@ -29,11 +32,8 @@
     uint8_t in[64];      // Accumulate block
 } th_md5state_t;
 
+typedef uint8_t th_md5hash_t[TH_MD5HASH_LENGTH];
 
-#define TH_MD5HASH_LENGTH       (16)
-#define TH_MD5HASH_LENGTH_CH    (TH_MD5HASH_LENGTH * 2)
-
-typedef uint8_t th_md5hash_t[TH_MD5HASH_LENGTH];
 
 void    th_md5_init(th_md5state_t *ctx);
 void    th_md5_append(th_md5state_t *ctx, const uint8_t *buf, size_t len);