OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 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 COMPONENTS_RAPPOR_RAPPOR_REPORTER_H_ |
| 6 #define COMPONENTS_RAPPOR_RAPPOR_REPORTER_H_ |
| 7 |
| 8 #include <assert.h> |
| 9 #include <limits.h> |
| 10 #include <math.h> |
| 11 |
| 12 #include <string> |
| 13 #include <vector> |
| 14 |
| 15 #include "crypto/hmac.h" |
| 16 #include "crypto/random.h" |
| 17 |
| 18 namespace rappor { |
| 19 |
| 20 class Rappor; |
| 21 |
| 22 // The Rappor reporter generates privacy preserving randomized report data |
| 23 // according to the scheme described in <put link here>. |
| 24 class RapporReporter { |
| 25 public: |
| 26 explicit RapporReporter(const std::string& secret); |
| 27 |
| 28 std::vector<uint8_t> GetReport(const Rappor& rappor); |
| 29 |
| 30 private: |
| 31 const std::string secret_; |
| 32 }; |
| 33 |
| 34 } // namespace rappor |
| 35 |
| 36 #endif // COMPONENTS_RAPPOR_RAPPOR_REPORTER_H_ |
OLD | NEW |