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

Side by Side Diff: crypto/p224_spake.h

Issue 14272007: Update the remaining include paths of base/string_piece.h to its new location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « crypto/p224.h ('k') | crypto/sha2.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CRYPTO_P224_SPAKE_H_ 5 #ifndef CRYPTO_P224_SPAKE_H_
6 #define CRYPTO_P224_SPAKE_H_ 6 #define CRYPTO_P224_SPAKE_H_
7 7
8 #include <base/string_piece.h> 8 #include <base/strings/string_piece.h>
9 #include <crypto/p224.h> 9 #include <crypto/p224.h>
10 #include <crypto/sha2.h> 10 #include <crypto/sha2.h>
11 11
12 namespace crypto { 12 namespace crypto {
13 13
14 // P224EncryptedKeyExchange implements SPAKE2, a variant of Encrypted 14 // P224EncryptedKeyExchange implements SPAKE2, a variant of Encrypted
15 // Key Exchange. It allows two parties that have a secret common 15 // Key Exchange. It allows two parties that have a secret common
16 // password to establish a common secure key by exchanging messages 16 // password to establish a common secure key by exchanging messages
17 // over unsecure channel without disclosing the password. 17 // over unsecure channel without disclosing the password.
18 // 18 //
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // expected_authenticator_ is used to store the hash value expected from the 105 // expected_authenticator_ is used to store the hash value expected from the
106 // other party. 106 // other party.
107 uint8 expected_authenticator_[kSHA256Length]; 107 uint8 expected_authenticator_[kSHA256Length];
108 108
109 std::string key_; 109 std::string key_;
110 }; 110 };
111 111
112 } // namespace crypto 112 } // namespace crypto
113 113
114 #endif // CRYPTO_P224_SPAKE_H_ 114 #endif // CRYPTO_P224_SPAKE_H_
OLDNEW
« no previous file with comments | « crypto/p224.h ('k') | crypto/sha2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698