Roll src/third_party/skia 99c7c07:4af6580
[chromium-blink-merge.git] / chrome / installer / mac / third_party / bsdiff / sha1_adapter.h
blob9e7de130ba01676f4d04d48e3590384ff774d005
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. */
5 #ifndef CHROME_INSTALLER_MAC_THIRD_PARTY_BSDIFF_SHA1_ADAPTER_H_
6 #define CHROME_INSTALLER_MAC_THIRD_PARTY_BSDIFF_SHA1_ADAPTER_H_
8 /* This file defines a wrapper around Chromium's C++ base::SHA1HashBytes
9 * function allowing it to be called from C code. */
11 #include <sys/types.h>
13 #define SHA1_DIGEST_LENGTH 20
15 #if defined(__cplusplus)
16 extern "C" {
17 #endif
19 void SHA1(const unsigned char* data, size_t len, unsigned char* hash);
21 #if defined(__cplusplus)
22 } // extern "C"
23 #endif
25 #endif /* CHROME_INSTALLER_MAC_THIRD_PARTY_BSDIFF_SHA1_ADAPTER_H_ */