[PLinq] Sanitize QueryOptions to use property everywhere and add ShouldBeSequential...
[mono.git] / mono / utils / mono-digest.h
index 1ff698f5051755a47292b05d0a44fbf44ec191ed..a605356c8147ad38009408f707e00e7217695882 100644 (file)
@@ -28,6 +28,8 @@
 
 #include <glib.h>
 
+G_BEGIN_DECLS
+
 typedef struct {
        guint32 buf[4];
        guint32 bits[2];
@@ -35,7 +37,7 @@ typedef struct {
        gint doByteReverse;
 } MonoMD5Context;
 
-void mono_md5_get_digest (const gchar *buffer, gint buffer_size, guchar digest[16]);
+void mono_md5_get_digest (const guchar *buffer, gint buffer_size, guchar digest[16]);
 
 /* use this one when speed is needed */
 /* for use in provider code only */
@@ -52,7 +54,7 @@ typedef struct {
     unsigned char buffer[64];
 } MonoSHA1Context;
 
-void mono_sha1_get_digest (const gchar *buffer, gint buffer_size, guchar digest [20]);
+void mono_sha1_get_digest (const guchar *buffer, gint buffer_size, guchar digest [20]);
 void mono_sha1_get_digest_from_file (const gchar *filename, guchar digest [20]);
 
 void mono_sha1_init   (MonoSHA1Context* context);
@@ -61,4 +63,5 @@ void mono_sha1_final  (MonoSHA1Context* context, unsigned char digest[20]);
 
 void mono_digest_get_public_token (guchar* token, const guchar *pubkey, guint32 len);
 
+G_END_DECLS
 #endif /* __MONO_DIGEST_H__ */