- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / installer / mac / third_party / bsdiff / sha1_adapter.h
1 /* Copyright (c) 2011 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 CHROME_INSTALLER_MAC_THIRD_PARTY_BSDIFF_SHA1_ADAPTER_H_
6 #define CHROME_INSTALLER_MAC_THIRD_PARTY_BSDIFF_SHA1_ADAPTER_H_
7
8 /* This file defines a wrapper around Chromium's C++ base::SHA1HashBytes
9  * function allowing it to be called from C code. */
10
11 #include <sys/types.h>
12
13 #define SHA1_DIGEST_LENGTH 20
14
15 #if defined(__cplusplus)
16 extern "C" {
17 #endif
18
19 void SHA1(const unsigned char* data, size_t len, unsigned char* hash);
20
21 #if defined(__cplusplus)
22 }  // extern "C"
23 #endif
24
25 #endif  /* CHROME_INSTALLER_MAC_THIRD_PARTY_BSDIFF_SHA1_ADAPTER_H_ */