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

Side by Side Diff: base/md5.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 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 | « base/marshal_by_value.h ('k') | base/md5.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2003-2009 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 // ========================================================================
15
16 /* MD5.H - header file for MD5C.C
17 */
18
19 /* Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
20 rights reserved.
21
22 License to copy and use this software is granted provided that it
23 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
24 Algorithm" in all material mentioning or referencing this software
25 or this function.
26
27 License is also granted to make and use derivative works provided
28 that such works are identified as "derived from the RSA Data
29 Security, Inc. MD5 Message-Digest Algorithm" in all material
30 mentioning or referencing the derived work.
31
32 RSA Data Security, Inc. makes no representations concerning either
33 the merchantability of this software or the suitability of this
34 software for any particular purpose. It is provided "as is"
35 without express or implied warranty of any kind.
36
37 These notices must be retained in any copies of any part of this
38 documentation and/or software.
39 */
40
41 /* GLOBAL.H - RSAREF types and constants
42 */
43
44 #ifndef TR_COMMON_MD5_H_
45 #define TR_COMMON_MD5_H_
46
47 #include "base/basictypes.h"
48
49 namespace omaha {
50
51 /* POINTER defines a generic pointer type */
52 typedef unsigned char *POINTER;
53
54 /* MD5 context */
55 typedef struct {
56 uint32 state[4]; /* state (ABCD) */
57 uint32 count[2]; /* number of bits, modulo 2^64 (lsb first) */
58 unsigned char buffer[64]; /* input buffer */
59 } MD5_CTX;
60
61 void MD5Init (MD5_CTX *);
62 void MD5Update (MD5_CTX *, unsigned char *, unsigned int);
63 void MD5Final (unsigned char [16], MD5_CTX *);
64
65 } // namespace omaha
66
67 #endif // TR_COMMON_MD5_H_
OLDNEW
« no previous file with comments | « base/marshal_by_value.h ('k') | base/md5.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698