Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
md5_hasher.h
Go to the documentation of this file.
1 // Copyright 2010 Google Inc.
17 
18 #ifndef PAGESPEED_KERNEL_BASE_MD5_HASHER_H_
19 #define PAGESPEED_KERNEL_BASE_MD5_HASHER_H_
20 
25 
26 namespace net_instaweb {
27 
28 class MD5Hasher : public Hasher {
29  public:
30  static const int kDefaultHashSize = 10;
31 
32  MD5Hasher() : Hasher(kDefaultHashSize) {}
33  explicit MD5Hasher(int hash_size) : Hasher(hash_size) { }
34  virtual ~MD5Hasher();
35 
36  virtual GoogleString RawHash(const StringPiece& content) const;
37  virtual int RawHashSizeInBytes() const;
38 
39  private:
40 
41 };
42 
43 }
44 
45 #endif
Definition: md5_hasher.h:28
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
virtual int RawHashSizeInBytes() const
The number of bytes RawHash will produce.
Hasher(int max_chars)
virtual GoogleString RawHash(const StringPiece &content) const
Definition: hasher.h:30