summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/MD5.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-12-21 11:12:14 -0500
committerBernard Normier <bernard@zeroc.com>2007-12-21 11:12:14 -0500
commit08ec7524df324e627bbb8d93c509f0d90badbe3b (patch)
treea640ae99a5e35b210352150feef4f71832b265c5 /cpp/src/IceUtil/MD5.cpp
parentMerge branch 'master' of ssh://cvs.zeroc.com/home/git/ice (diff)
downloadice-08ec7524df324e627bbb8d93c509f0d90badbe3b.tar.bz2
ice-08ec7524df324e627bbb8d93c509f0d90badbe3b.tar.xz
ice-08ec7524df324e627bbb8d93c509f0d90badbe3b.zip
IceUtil cleanup (first commit)
Diffstat (limited to 'cpp/src/IceUtil/MD5.cpp')
-rw-r--r--cpp/src/IceUtil/MD5.cpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/cpp/src/IceUtil/MD5.cpp b/cpp/src/IceUtil/MD5.cpp
deleted file mode 100644
index f7e818bc2b3..00000000000
--- a/cpp/src/IceUtil/MD5.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice is licensed to you under the terms described in the
-// ICE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-#include <IceUtil/MD5.h>
-#include <IceUtil/MD5I.h>
-
-using namespace std;
-
-//
-// This class is a C++ wrapper around the C implementation contained in
-// MD5I.cpp, obtained from http://sourceforge.net/projects/libmd5-rfc/.
-//
-
-IceUtil::MD5::MD5()
-{
- _state = new md5_state_s;
- md5_init(_state);
-}
-
-IceUtil::MD5::MD5(const unsigned char* data, int n)
-{
- _state = new md5_state_s;
- md5_init(_state);
- update(data, n);
- finish();
-}
-
-IceUtil::MD5::~MD5()
-{
- delete _state;
-}
-
-void
-IceUtil::MD5::update(const unsigned char* data, int n)
-{
- md5_append(_state, data, n);
-}
-
-void
-IceUtil::MD5::finish()
-{
- md5_finish(_state, _digest);
- md5_init(_state);
-}
-
-void
-IceUtil::MD5::getDigest(unsigned char* digest) const
-{
- memcpy(digest, _digest, sizeof(unsigned char) * 16);
-}