Skip to content

Commit

Permalink
Add requested documentation.
Browse files Browse the repository at this point in the history
Review URL: http://codereview.chromium.org/6927074

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84493 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
abarth@chromium.org committed May 6, 2011
1 parent bdb22a4 commit ff24f49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions crypto/hmac.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class HMAC {
explicit HMAC(HashAlgorithm hash_alg);
~HMAC();

// Returns the length of digest that this HMAC will create.
size_t DigestLength() const;

// TODO(abarth): Add a PreferredKeyLength() member function.
Expand Down
7 changes: 7 additions & 0 deletions net/http/http_mac_signature.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

namespace net {

// This class represents an HTTP MAC signature for use in the HTTP MAC
// Authentication scheme. The current draft specification of this
// authentication scheme is located at the following URL:
//
// http://tools.ietf.org/html/draft-hammer-oauth-v2-mac-token
//
class HttpMacSignature {
public:
HttpMacSignature();
Expand All @@ -31,6 +37,7 @@ class HttpMacSignature {
const std::string& host,
int port);

// Returns the value of the Authorization header for use in an HTTP request.
std::string GenerateAuthorizationHeader();

private:
Expand Down

0 comments on commit ff24f49

Please sign in to comment.