summaryrefslogtreecommitdiff
path: root/legacy/ethumb/src/lib/md5.h
diff options
context:
space:
mode:
authorRafael Antognolli <antognolli@gmail.com>2009-03-30 21:22:52 +0000
committerRafael Antognolli <antognolli@gmail.com>2009-03-30 21:22:52 +0000
commit258cfee9909da631c33fa5d28d9e13f9ad5935f7 (patch)
tree07b9905a8f7a105a673134de50d33d7ab3f64376 /legacy/ethumb/src/lib/md5.h
parent81bdbba586b405a5d00d9bf2f87d9889aea0af0f (diff)
ethumb - Thumbnailing Library
New library to generate thumbnails. There are still some important features to be implemented, like client-server framework, edje thumbnails and a plugin API to integrate it with emotion and like. Please, send comments. SVN revision: 39805
Diffstat (limited to 'legacy/ethumb/src/lib/md5.h')
-rw-r--r--legacy/ethumb/src/lib/md5.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/legacy/ethumb/src/lib/md5.h b/legacy/ethumb/src/lib/md5.h
new file mode 100644
index 0000000000..348fcd654b
--- /dev/null
+++ b/legacy/ethumb/src/lib/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