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

Unified Diff: extensions/browser/api/cast_channel/cast_auth_ica.cc

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 5 years 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: extensions/browser/api/cast_channel/cast_auth_ica.cc
diff --git a/extensions/browser/api/cast_channel/cast_auth_ica.cc b/extensions/browser/api/cast_channel/cast_auth_ica.cc
index 079b7aa6c56238c9c5f0377aaf42af8d79d3cfe8..8e6b38abc5efa29a39efebbf01aaee3341b99ef8 100644
--- a/extensions/browser/api/cast_channel/cast_auth_ica.cc
+++ b/extensions/browser/api/cast_channel/cast_auth_ica.cc
@@ -4,6 +4,8 @@
#include "extensions/browser/api/cast_channel/cast_auth_ica.h"
+#include <stdint.h>
+
#include "base/base64.h"
#include "base/lazy_instance.h"
#include "crypto/signature_verifier.h"
@@ -25,7 +27,7 @@ static const net::SHA256HashValue kDefaultFingerprintICA = { {
} };
// Built in public key for verifying trusted authorities data.
-const uint8 kPublicKey[] = {
+const uint8_t kPublicKey[] = {
0x30, 0x82, 0x01, 0x22, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86,
0xF7, 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0F, 0x00,
0x30, 0x82, 0x01, 0x0A, 0x02, 0x82, 0x01, 0x01, 0x00, 0xC3, 0x8D, 0xEC,
@@ -64,17 +66,13 @@ bool VerifySignature(const std::string& signature, const std::string& data) {
unsigned int hash_len = 32;
if (!verifier.VerifyInitRSAPSS(
- hash_alg,
- mask_hash_alg,
- hash_len,
- reinterpret_cast<const uint8*>(signature.data()),
- signature.size(),
- kPublicKey,
- sizeof(kPublicKey))) {
+ hash_alg, mask_hash_alg, hash_len,
+ reinterpret_cast<const uint8_t*>(signature.data()), signature.size(),
+ kPublicKey, sizeof(kPublicKey))) {
return false;
}
- verifier.VerifyUpdate(reinterpret_cast<const uint8*>(data.data()),
+ verifier.VerifyUpdate(reinterpret_cast<const uint8_t*>(data.data()),
data.size());
return verifier.VerifyFinal();
« no previous file with comments | « extensions/browser/api/cast_channel/cast_auth_ica.h ('k') | extensions/browser/api/cast_channel/cast_auth_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698