diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-20 19:09:50 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-20 19:09:50 +0000 |
commit | 9bd3095ca43167be01c25cd79c2e7c21529ed153 (patch) | |
tree | 23e3e135d5bdd756eb14ca5e86b9b3d4edb9198d /net/http/des.h | |
parent | 1b0f1e169e3d747080449c6d54c1965b597ff5f9 (diff) | |
download | chromium_src-9bd3095ca43167be01c25cd79c2e7c21529ed153.zip chromium_src-9bd3095ca43167be01c25cd79c2e7c21529ed153.tar.gz chromium_src-9bd3095ca43167be01c25cd79c2e7c21529ed153.tar.bz2 |
net: Add NET_API to the auth code.
BUG=76997
TEST=NONE
Review URL: http://codereview.chromium.org/7016043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86128 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/des.h')
-rw-r--r-- | net/http/des.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/http/des.h b/net/http/des.h index 94a4f7c..5ae4916 100644 --- a/net/http/des.h +++ b/net/http/des.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -7,6 +7,7 @@ #pragma once #include "base/basictypes.h" +#include "net/base/net_api.h" namespace net { @@ -16,12 +17,12 @@ namespace net { // TODO(wtc): Turn this into a C++ API and move it to the base module. // Build a 64-bit DES key from a 56-bit raw key. -void DESMakeKey(const uint8* raw, uint8* key); +NET_TEST void DESMakeKey(const uint8* raw, uint8* key); // Run the DES encryption algorithm in ECB mode on one block (8 bytes) of // data. |key| is a DES key (8 bytes), |src| is the input plaintext (8 // bytes), and |hash| is an 8-byte buffer receiving the output ciphertext. -void DESEncrypt(const uint8* key, const uint8* src, uint8* hash); +NET_TEST void DESEncrypt(const uint8* key, const uint8* src, uint8* hash); } // namespace net |