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

Side by Side Diff: net/http/des.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 | « net/ftp/ftp_util_unittest.cc ('k') | net/http/des.cc » ('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 NET_HTTP_DES_H_ 5 #ifndef NET_HTTP_DES_H_
6 #define NET_HTTP_DES_H_ 6 #define NET_HTTP_DES_H_
7 7
8 #include "base/basictypes.h" 8 #include <stdint.h>
9
9 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
10 11
11 namespace net { 12 namespace net {
12 13
13 //----------------------------------------------------------------------------- 14 //-----------------------------------------------------------------------------
14 // DES support code for NTLM authentication. 15 // DES support code for NTLM authentication.
15 // 16 //
16 // TODO(wtc): Turn this into a C++ API and move it to the base module. 17 // TODO(wtc): Turn this into a C++ API and move it to the base module.
17 18
18 // Build a 64-bit DES key from a 56-bit raw key. 19 // Build a 64-bit DES key from a 56-bit raw key.
19 NET_EXPORT_PRIVATE void DESMakeKey(const uint8* raw, uint8* key); 20 NET_EXPORT_PRIVATE void DESMakeKey(const uint8_t* raw, uint8_t* key);
20 21
21 // Run the DES encryption algorithm in ECB mode on one block (8 bytes) of 22 // Run the DES encryption algorithm in ECB mode on one block (8 bytes) of
22 // data. |key| is a DES key (8 bytes), |src| is the input plaintext (8 23 // data. |key| is a DES key (8 bytes), |src| is the input plaintext (8
23 // bytes), and |hash| is an 8-byte buffer receiving the output ciphertext. 24 // bytes), and |hash| is an 8-byte buffer receiving the output ciphertext.
24 NET_EXPORT_PRIVATE void DESEncrypt(const uint8* key, const uint8* src, 25 NET_EXPORT_PRIVATE void DESEncrypt(const uint8_t* key,
25 uint8* hash); 26 const uint8_t* src,
27 uint8_t* hash);
26 28
27 } // namespace net 29 } // namespace net
28 30
29 #endif // NET_HTTP_DES_H_ 31 #endif // NET_HTTP_DES_H_
OLDNEW
« no previous file with comments | « net/ftp/ftp_util_unittest.cc ('k') | net/http/des.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698