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

Unified Diff: net/base/dnssec_chain_verifier.cc

Issue 6805019: Move crypto files out of base, to a top level directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixes comments by eroman Created 9 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
« no previous file with comments | « net/base/cert_database_nss_unittest.cc ('k') | net/base/dnssec_keyset.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/dnssec_chain_verifier.cc
===================================================================
--- net/base/dnssec_chain_verifier.cc (revision 81350)
+++ net/base/dnssec_chain_verifier.cc (working copy)
@@ -7,8 +7,8 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/sha1.h"
-#include "base/sha2.h"
#include "base/string_util.h"
+#include "crypto/sha2.h"
#include "net/base/dns_util.h"
#include "net/base/dnssec_keyset.h"
@@ -516,7 +516,7 @@
uint16 keyid,
uint8 algorithm) {
std::string temp;
- uint8 temp2[base::SHA256_LENGTH];
+ uint8 temp2[crypto::SHA256_LENGTH];
const uint8* digest;
unsigned digest_len;
@@ -527,7 +527,7 @@
digest = reinterpret_cast<const uint8*>(temp.data());
digest_len = base::SHA1_LENGTH;
} else if (digest_type == kDNSSEC_SHA256) {
- base::SHA256HashString(input, temp2, sizeof(temp2));
+ crypto::SHA256HashString(input, temp2, sizeof(temp2));
digest = temp2;
digest_len = sizeof(temp2);
} else {
Property changes on: net\base\dnssec_chain_verifier.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « net/base/cert_database_nss_unittest.cc ('k') | net/base/dnssec_keyset.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698