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

Side by Side Diff: rlz/lib/crc8.h

Issue 10659022: Revert 144071 - Add a regenerate button to regenerate the password in Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « rlz/lib/crc32_wrapper.cc ('k') | rlz/lib/crc8.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Crc8 utility functions. 5 // Crc8 utility functions.
6 6
7 #ifndef RLZ_LIB_CRC8_H_ 7 #ifndef RLZ_LIB_CRC8_H_
8 #define RLZ_LIB_CRC8_H_ 8 #define RLZ_LIB_CRC8_H_
9 9
10 namespace rlz_lib { 10 namespace rlz_lib {
11 // CRC-8 methods: 11 // CRC-8 methods:
12 class Crc8 { 12 class Crc8 {
13 public: 13 public:
14 static bool Generate(const unsigned char* data, 14 static bool Generate(const unsigned char* data,
15 int length, 15 int length,
16 unsigned char* check_sum); 16 unsigned char* check_sum);
17 static bool Verify(const unsigned char* data, 17 static bool Verify(const unsigned char* data,
18 int length, 18 int length,
19 unsigned char checksum, 19 unsigned char checksum,
20 bool * matches); 20 bool * matches);
21 }; 21 };
22 }; // namespace rlz_lib 22 }; // namespace rlz_lib
23 23
24 #endif // RLZ_LIB_CRC8_H_ 24 #endif // RLZ_LIB_CRC8_H_
OLDNEW
« no previous file with comments | « rlz/lib/crc32_wrapper.cc ('k') | rlz/lib/crc8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698