Use smaller types in mbedtls_md_info_t
Saves a few bytes of code size.
diff --git a/include/mbedtls/md_internal.h b/include/mbedtls/md_internal.h
index 96ff534..e7bf16b 100644
--- a/include/mbedtls/md_internal.h
+++ b/include/mbedtls/md_internal.h
@@ -46,17 +46,17 @@
*/
struct mbedtls_md_info_t
{
- /** Digest identifier */
- mbedtls_md_type_t type;
-
/** Name of the message digest */
const char * name;
+ /** Digest identifier */
+ mbedtls_md_type_t type;
+
/** Output length of the digest function in bytes */
- int size;
+ unsigned char size;
/** Block length of the digest function in bytes */
- int block_size;
+ unsigned char block_size;
};
#if defined(MBEDTLS_MD2_C)