Adds a new layer animation element which owns an interpolated transform. This allows...
[chromium-blink-merge.git] / base / sha1.h
blob80195ce38890409c7107f76a7fbe4bb8dc5be50f
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 BASE_SHA1_H_
6 #define BASE_SHA1_H_
7 #pragma once
9 #include <string>
11 #include "base/base_export.h"
13 namespace base {
15 // These functions perform SHA-1 operations.
17 static const size_t kSHA1Length = 20; // Length in bytes of a SHA-1 hash.
19 // Computes the SHA-1 hash of the input string |str| and returns the full
20 // hash.
21 BASE_EXPORT std::string SHA1HashString(const std::string& str);
23 // Computes the SHA-1 hash of the |len| bytes in |data| and puts the hash
24 // in |hash|. |hash| must be kSHA1Length bytes long.
25 BASE_EXPORT void SHA1HashBytes(const unsigned char* data, size_t len,
26 unsigned char* hash);
28 } // namespace base
30 #endif // BASE_SHA1_H_