X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fmd5.h;h=7d9abeba9ebf785e711df241b704d9c7126f83ab;hb=ec6703bb4d58e504fde8ea8429f9b26ab6632696;hp=6980a1f9cd26fb02e33e0c6dc619e08a4209661d;hpb=b5b7b2641b00a18b53c48a1335846133f1d53168;p=libucw.git diff --git a/ucw/md5.h b/ucw/md5.h index 6980a1f9..7d9abeba 100644 --- 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. @@ -25,9 +33,9 @@ void md5_init(md5_context *context); /** Initialize the MD5 hashing algorithm in * as if you concatenated all the data together and fed them here all at * once. */ -void md5_update(md5_context *context, const byte *buf, uns len); +void md5_update(md5_context *context, const byte *buf, uint 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 @@ -58,7 +66,7 @@ void md5_transform(u32 buf[4], const u32 in[16]); * md5_update(&c, buffer, length); * memcpy(outbuf, md5_final(&c), MD5_SIZE); */ -void md5_hash_buffer(byte *outbuf, const byte *buffer, uns length); +void md5_hash_buffer(byte *outbuf, const byte *buffer, uint length); #define MD5_HEX_SIZE 33 /** How many bytes a string buffer for MD5 in hexadecimal format should have. **/ #define MD5_SIZE 16 /** Number of bytes the MD5 hash takes in the binary form. **/