# HG changeset patch # User Matti Hamalainen # Date 1455616937 -7200 # Node ID 5f9de1d542eeed7713f9b0640f2ced1651bf1b09 # Parent e4d6bba7d7a4380ed24d20b71c1cd4efbfe41892 Cosmetics. diff -r e4d6bba7d7a4 -r 5f9de1d542ee th_crypto.h --- 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);