]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/md5.h
Opt: Streamlined opt_parse_value()
[libucw.git] / ucw / md5.h
index 400c875219a47089422e3d72d72952cc9afd5cce..0d771954316608a0c1bcbb5acc48ad7ec60d8369 100644 (file)
--- a/ucw/md5.h
+++ b/ucw/md5.h
@@ -7,6 +7,14 @@
 #ifndef _UCW_MD5_H
 #define _UCW_MD5_H
 
+#ifdef CONFIG_UCW_CLEAN_ABI
+#define md5_final ucw_md5_final
+#define md5_hash_buffer ucw_md5_hash_buffer
+#define md5_init ucw_md5_init
+#define md5_transform ucw_md5_transform
+#define md5_update ucw_md5_update
+#endif
+
 /**
  * Internal MD5 hash state.
  * You should use it just as an opaque handle only.
@@ -27,7 +35,7 @@ void md5_init(md5_context *context); /** Initialize the MD5 hashing algorithm in
  */
 void md5_update(md5_context *context, const byte *buf, uns len);
 /**
- * Call this after the last md5_update(). It will terminate the
+ * Call this after the last @md5_update(). It will terminate the
  * algorithm and return a pointer to the result.
  *
  * Note that the data it points to are stored inside the @context, so
@@ -52,6 +60,7 @@ void md5_transform(u32 buf[4], const u32 in[16]);
  * @buffer, creates the hash from them and returns it in @output.
  *
  * It is equivalent to this code:
+ *
  *  md5_context c;
  *  md5_init(&c);
  *  md5_update(&c, buffer, length);