Fix uninitialized field in test following r197009.
[chromium-blink-merge.git] / rlz / lib / crc8.h
blob6c3c84859bfc589aac679d7cf67579822a506cc4
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
3 // found in the LICENSE file.
4 //
5 // Crc8 utility functions.
7 #ifndef RLZ_LIB_CRC8_H_
8 #define RLZ_LIB_CRC8_H_
10 namespace rlz_lib {
11 // CRC-8 methods:
12 class Crc8 {
13 public:
14 static bool Generate(const unsigned char* data,
15 int length,
16 unsigned char* check_sum);
17 static bool Verify(const unsigned char* data,
18 int length,
19 unsigned char checksum,
20 bool * matches);
22 }; // namespace rlz_lib
24 #endif // RLZ_LIB_CRC8_H_