summaryrefslogtreecommitdiff
path: root/md5
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2016-03-18 13:19:33 +0900
committerMinje Ahn <minje.ahn@samsung.com>2016-03-18 13:19:33 +0900
commit98e6b94518d0c412d5a4eccb88490cb0a6876340 (patch)
tree8c7353689502b2a64c2a437538fe87cc6ff70591 /md5
parentc7e9c75206f8cb49c843840e0fcdd91dd37645e0 (diff)
downloadlibmedia-service-98e6b94518d0c412d5a4eccb88490cb0a6876340.tar.gz
libmedia-service-98e6b94518d0c412d5a4eccb88490cb0a6876340.tar.bz2
libmedia-service-98e6b94518d0c412d5a4eccb88490cb0a6876340.zip
Change-Id: Ic4d1ac701103eee90362c00c9445e62663430ec3 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'md5')
-rwxr-xr-xmd5/md5.c6
-rwxr-xr-xmd5/md5.h6
-rwxr-xr-xmd5/media-svc-hash.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/md5/md5.c b/md5/md5.c
index 4ff36e5..980e11c 100755
--- a/md5/md5.c
+++ b/md5/md5.c
@@ -46,7 +46,7 @@ void byteReverse(unsigned char *buf, unsigned longs)
* Start MD5 accumulation. Set bit count to 0 and buffer to mysterious
* initialization constants.
*/
-void MD5Init(MD5_CTX *ctx)
+void media_svc_MD5Init(MD5_CTX *ctx)
{
ctx->buf[0] = 0x67452301;
ctx->buf[1] = 0xefcdab89;
@@ -61,7 +61,7 @@ void MD5Init(MD5_CTX *ctx)
* Update context to reflect the concatenation of another buffer full
* of bytes.
*/
-void MD5Update(MD5_CTX *ctx, unsigned char const *buf, unsigned len)
+void media_svc_MD5Update(MD5_CTX *ctx, unsigned char const *buf, unsigned len)
{
uint32_t t;
@@ -111,7 +111,7 @@ void MD5Update(MD5_CTX *ctx, unsigned char const *buf, unsigned len)
* Final wrapup - pad to 64-byte boundary with the bit pattern
* 1 0* (64-bit count of bits processed, MSB-first)
*/
-void MD5Final(unsigned char digest[16], MD5_CTX *ctx)
+void media_svc_MD5Final(unsigned char digest[16], MD5_CTX *ctx)
{
unsigned count;
unsigned char *p;
diff --git a/md5/md5.h b/md5/md5.h
index 450f540..ae9b307 100755
--- a/md5/md5.h
+++ b/md5/md5.h
@@ -30,9 +30,9 @@ typedef struct MD5Context {
unsigned char in[64];
} MD5_CTX;
-extern void MD5Init(MD5_CTX *context);
-extern void MD5Update(MD5_CTX *context, unsigned char const *buf, unsigned len);
-extern void MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
+extern void media_svc_MD5Init(MD5_CTX *context);
+extern void media_svc_MD5Update(MD5_CTX *context, unsigned char const *buf, unsigned len);
+extern void media_svc_MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
extern void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
diff --git a/md5/media-svc-hash.c b/md5/media-svc-hash.c
index affe10b..9987f50 100755
--- a/md5/media-svc-hash.c
+++ b/md5/media-svc-hash.c
@@ -92,9 +92,9 @@ char *_mb_svc_generate_hash_name(const char *file)
*t = '\0';
#undef _check_uri_char
- MD5Init(&ctx);
- MD5Update(&ctx, (unsigned char const *)uri, (unsigned)strlen(uri));
- MD5Final(hash, &ctx);
+ media_svc_MD5Init(&ctx);
+ media_svc_MD5Update(&ctx, (unsigned char const *)uri, (unsigned)strlen(uri));
+ media_svc_MD5Final(hash, &ctx);
for (n = 0; n < MD5_HASHBYTES; n++) {
md5out[2 * n] = hex[hash[n] >> 4];