X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fmono-sha1.c;h=ab96e29986d0da3e6599d59b85e330c022100518;hb=8c30681105db63b4695f2c2b3e31ec3d694cf973;hp=8e77fa4af1205c1b9c874204349692ae136237fe;hpb=6110fc90713ce59ff0996fcd3520e09a96575820;p=mono.git diff --git a/mono/utils/mono-sha1.c b/mono/utils/mono-sha1.c index 8e77fa4af12..ab96e29986d 100644 --- a/mono/utils/mono-sha1.c +++ b/mono/utils/mono-sha1.c @@ -256,6 +256,16 @@ mono_sha1_get_digest (const guchar *buffer, gint buffer_size, guchar digest [20] } +/** + * mono_sha1_get_digest_from_file: get the sha1 hash of a file + * @filename: file name + * @digest: 20 bytes buffer receiving the hash code. + * + * Get the sha1 hash of a file. The result is put in + * the 20 bytes buffer @digest . + * + * If an IO error happens the value in @digest is not updated. + **/ void mono_sha1_get_digest_from_file (const gchar *filename, guchar digest [20]) {