| OLD | NEW |
| (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_ |
| OLD | NEW |