Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Unified Diff: src/utils/SkSHA1.h

Issue 14265010: Make SkSHA1 and SkM5 use common SkDigestHash result type (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/utils/SkSHA1.h
===================================================================
--- src/utils/SkSHA1.h (revision 8685)
+++ src/utils/SkSHA1.h (working copy)
@@ -8,6 +8,7 @@
#ifndef SkSHA1_DEFINED
#define SkSHA1_DEFINED
+#include "SkHashDigest.h"
#include "SkTypes.h"
#include "SkEndian.h"
#include "SkStream.h"
@@ -32,12 +33,8 @@
/** Processes input, adding it to the digest. Calling this after finish is undefined. */
void update(const uint8_t* input, size_t length);
- struct Digest {
- uint8_t data[20];
- };
-
/** Computes and returns the digest. */
- void finish(Digest& digest);
+ void finish(SkHashDigest& digest);
private:
// number of bytes, modulo 2^64
« src/utils/SkMD5.cpp ('K') | « src/utils/SkMD5.cpp ('k') | src/utils/SkSHA1.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698