summaryrefslogtreecommitdiff
path: root/src/lib/ethumb/md5.h
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-12 01:15:45 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-12 01:15:45 +0000
commit34f53151414bcdf44ec81e582b007f74da595694 (patch)
tree863058f0d94e9d39998774a375aa6d242d8714a4 /src/lib/ethumb/md5.h
parentae51833bac7ba5f72bd40a96beb13081c8d573f6 (diff)
merge ethumb.
This one was a painful bitch. The edbus2 port was quite broken, mainly leaking eina_stringshare and also not adding the '\0' to the strings that are represented as bytearray (paths cannot be utf8 to avoid translations). Emotion plugin was also quite bogus and the video thumbnail as edje (animated) is not working yet due bug in Edje_Edit api -- someone needs to investigate this, seems strange. Emotion plugin also had a bug that it was deleting the object from inside object callback. Now it seems to work. Please report if it does not. SVN revision: 82675
Diffstat (limited to 'src/lib/ethumb/md5.h')
-rw-r--r--src/lib/ethumb/md5.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/lib/ethumb/md5.h b/src/lib/ethumb/md5.h
new file mode 100644
index 0000000000..348fcd654b
--- /dev/null
+++ b/src/lib/ethumb/md5.h
@@ -0,0 +1,24 @@
1#ifndef _MD5_H_
2#define _MD5_H_
3
4#include <stdint.h>
5#include <sys/types.h>
6
7#define MD5_HASHBYTES 16
8
9typedef struct MD5Context {
10 uint32_t buf[4];
11 uint32_t bits[2];
12 unsigned char in[64];
13} MD5_CTX;
14
15extern void MD5Init(MD5_CTX *context);
16extern void MD5Update(MD5_CTX *context,unsigned char const *buf,unsigned len);
17extern void MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
18
19extern void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
20extern char *MD5End(MD5_CTX *, char *);
21extern char *MD5File(const char *, char *);
22extern char *MD5Data (const unsigned char *, unsigned int, char *);
23
24#endif