aboutsummaryrefslogtreecommitdiff
path: root/webrtc/base/sha1digest.h
diff options
context:
space:
mode:
authorperkj@webrtc.org <perkj@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-05-13 08:15:48 +0000
committerperkj@webrtc.org <perkj@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-05-13 08:15:48 +0000
commite9a604accd54ab14dbf98f99ccdcf3ae1c54d27c (patch)
tree184b2b5550237373580acbeb8861c833e6027df9 /webrtc/base/sha1digest.h
parent3a5825909d24ec39112a8c882a8060ae745929a7 (diff)
downloadwebrtc-e9a604accd54ab14dbf98f99ccdcf3ae1c54d27c.tar.gz
Revert 6107 "Adds a modified copy of talk/base to webrtc/base. I..."
This breaks Chromium FYI builds and prevent roll of webrtc/libjingle to Chrome. http://chromegw.corp.google.com/i/chromium.webrtc.fyi/builders/Win%20Builder/builds/457 > Adds a modified copy of talk/base to webrtc/base. It is the first step in migrating talk/base to webrtc/base. > > BUG=N/A > R=andrew@webrtc.org, wu@webrtc.org > > Review URL: https://webrtc-codereview.appspot.com/12199004 TBR=henrike@webrtc.org Review URL: https://webrtc-codereview.appspot.com/14479004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6116 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc/base/sha1digest.h')
-rw-r--r--webrtc/base/sha1digest.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/webrtc/base/sha1digest.h b/webrtc/base/sha1digest.h
deleted file mode 100644
index fb4c53e6e4..0000000000
--- a/webrtc/base/sha1digest.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright 2012 The WebRTC Project Authors. All rights reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#ifndef WEBRTC_BASE_SHA1DIGEST_H_
-#define WEBRTC_BASE_SHA1DIGEST_H_
-
-#include "webrtc/base/messagedigest.h"
-#include "webrtc/base/sha1.h"
-
-namespace rtc {
-
-// A simple wrapper for our SHA-1 implementation.
-class Sha1Digest : public MessageDigest {
- public:
- enum { kSize = SHA1_DIGEST_SIZE };
- Sha1Digest() {
- SHA1Init(&ctx_);
- }
- virtual size_t Size() const {
- return kSize;
- }
- virtual void Update(const void* buf, size_t len) {
- SHA1Update(&ctx_, static_cast<const uint8*>(buf), len);
- }
- virtual size_t Finish(void* buf, size_t len) {
- if (len < kSize) {
- return 0;
- }
- SHA1Final(&ctx_, static_cast<uint8*>(buf));
- SHA1Init(&ctx_); // Reset for next use.
- return kSize;
- }
-
- private:
- SHA1_CTX ctx_;
-};
-
-} // namespace rtc
-
-#endif // WEBRTC_BASE_SHA1DIGEST_H_