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)
19 void SHA1(const unsigned char* data
, size_t len
, unsigned char* hash
);
21 #if defined(__cplusplus)
25 #endif /* CHROME_INSTALLER_MAC_THIRD_PARTY_BSDIFF_SHA1_ADAPTER_H_ */