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

Side by Side Diff: content/browser/experiments/api_key_signature_verifier.h

Issue 1563903002: Add public key and signature verification to browser-side API keys Base URL: https://chromium.googlesource.com/chromium/src.git@keys
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/experiments/api_key_signature_verifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_EXPERIMENTS_API_KEY_SIGNATURE_VERIFIER_H_
6 #define CONTENT_BROWSER_EXPERIMENTS_API_KEY_SIGNATURE_VERIFIER_H_
7
8 #include <stdint.h>
9 #include <string>
10
11 #include "content/common/content_export.h"
12
13 namespace content {
14
15 class CONTENT_EXPORT ApiKeySignatureVerifier {
16 public:
17 static bool VerifySignature(const std::string& signature_text,
18 const std::string& data);
19 static bool VerifySignature(const std::string& signature_text,
20 const std::string& data,
21 const uint8_t* public_key,
22 size_t public_key_length);
23 };
24
25 } // namespace content
26
27 #endif // CONTENT_BROWSER_EXPERIMENTS_API_KEY_SIGNATURE_VERIFIER_H_
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/experiments/api_key_signature_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698