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

Unified Diff: chrome/common/extensions/api/networking_private/networking_private_crypto.h

Issue 792353002: Refactoring of Cast-related crypto code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed typo from https://codereview.chromium.org/747223002 Created 5 years, 11 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: chrome/common/extensions/api/networking_private/networking_private_crypto.h
diff --git a/chrome/common/extensions/api/networking_private/networking_private_crypto.h b/chrome/common/extensions/api/networking_private/networking_private_crypto.h
index e61329387165293ce3ceacd706dd90a324320084..8940c0ba066bf108106e2c44bbbd8fc7bba690e1 100644
--- a/chrome/common/extensions/api/networking_private/networking_private_crypto.h
+++ b/chrome/common/extensions/api/networking_private/networking_private_crypto.h
@@ -20,10 +20,12 @@ namespace networking_private_crypto {
// 2) The certificate is a valid PEM encoded certificate signed by trusted CA.
// 3) |signature| is a valid signature for |data|, using the public key in
// |certificate|
-bool VerifyCredentials(const std::string& certificate,
- const std::string& signature,
- const std::string& data,
- const std::string& connected_mac);
+bool VerifyCredentials(
+ const std::string& certificate,
+ const std::vector<std::string>& intermediate_certificates,
+ const std::string& signature,
+ const std::string& data,
+ const std::string& connected_mac);
// Encrypt |data| with |public_key|. |public_key| is a DER-encoded
// RSAPublicKey. |data| is some string of bytes that is smaller than the
@@ -44,12 +46,6 @@ bool DecryptByteString(const std::string& private_key_pem,
const std::vector<uint8_t>& encrypted_data,
std::string* decrypted_output);
-// The trusted public key as a DER-encoded PKCS#1 RSAPublicKey structure.
-extern const uint8_t kTrustedCAPublicKeyDER[];
-
-// The length of |kTrustedCAPublicKeyDER| in bytes.
-extern const size_t kTrustedCAPublicKeyDERLength;
-
} // namespace networking_private_crypto
#endif // CHROME_COMMON_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CRYPTO_H_

Powered by Google App Engine
This is Rietveld 408576698