Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Side by Side Diff: base/md5.h

Issue 2852733003: Poke whitespace files.
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/whitespace_file.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_MD5_H_ 5 #ifndef BASE_MD5_H_
6 #define BASE_MD5_H_ 6 #define BASE_MD5_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "base/base_export.h" 11 #include "base/base_export.h"
12 #include "base/strings/string_piece.h" 12 #include "base/strings/string_piece.h"
13 13
14 // Meep
15
14 namespace base { 16 namespace base {
15 17
16 // MD5 stands for Message Digest algorithm 5. 18 // MD5 stands for Message Digest algorithm 5.
17 // MD5 is a robust hash function, designed for cyptography, but often used 19 // MD5 is a robust hash function, designed for cyptography, but often used
18 // for file checksums. The code is complex and slow, but has few 20 // for file checksums. The code is complex and slow, but has few
19 // collisions. 21 // collisions.
20 // See Also: 22 // See Also:
21 // http://en.wikipedia.org/wiki/MD5 23 // http://en.wikipedia.org/wiki/MD5
22 24
23 // These functions perform MD5 operations. The simplest call is MD5Sum() to 25 // These functions perform MD5 operations. The simplest call is MD5Sum() to
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Computes the MD5 sum of the given data buffer with the given length. 71 // Computes the MD5 sum of the given data buffer with the given length.
70 // The given 'digest' structure will be filled with the result data. 72 // The given 'digest' structure will be filled with the result data.
71 BASE_EXPORT void MD5Sum(const void* data, size_t length, MD5Digest* digest); 73 BASE_EXPORT void MD5Sum(const void* data, size_t length, MD5Digest* digest);
72 74
73 // Returns the MD5 (in hexadecimal) of a string. 75 // Returns the MD5 (in hexadecimal) of a string.
74 BASE_EXPORT std::string MD5String(const StringPiece& str); 76 BASE_EXPORT std::string MD5String(const StringPiece& str);
75 77
76 } // namespace base 78 } // namespace base
77 79
78 #endif // BASE_MD5_H_ 80 #endif // BASE_MD5_H_
OLDNEW
« no previous file with comments | « no previous file | build/whitespace_file.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698