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

Unified Diff: chrome/browser/extensions/install_signer.cc

Issue 1679873005: Switch SignatureVerifier to taking an algorithm enum. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix iOS build Created 4 years, 10 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 | « no previous file | components/crx_file.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/install_signer.cc
diff --git a/chrome/browser/extensions/install_signer.cc b/chrome/browser/extensions/install_signer.cc
index 7ce0ccbdf388811a5274271bfca57a96fea4816b..b4cf0b918394a34db5eb762d28a68e0bb2bcda6d 100644
--- a/chrome/browser/extensions/install_signer.cc
+++ b/chrome/browser/extensions/install_signer.cc
@@ -27,7 +27,6 @@
#include "base/values.h"
#include "build/build_config.h"
#include "chrome/common/chrome_switches.h"
-#include "components/crx_file/constants.h"
#include "crypto/random.h"
#include "crypto/secure_hash.h"
#include "crypto/sha2.h"
@@ -260,7 +259,7 @@ bool InstallSigner::VerifySignature(const InstallSignature& signature) {
crypto::SignatureVerifier verifier;
if (!verifier.VerifyInit(
- crx_file::kSignatureAlgorithm, sizeof(crx_file::kSignatureAlgorithm),
+ crypto::SignatureVerifier::RSA_PKCS1_SHA1,
reinterpret_cast<const uint8_t*>(signature.signature.data()),
signature.signature.size(),
reinterpret_cast<const uint8_t*>(public_key.data()),
« no previous file with comments | « no previous file | components/crx_file.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698