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

Side by Side Diff: crypto/encryptor.h

Issue 11186004: Use the NSS internal key slot for all temporary key operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused slot Created 8 years, 2 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 | « no previous file | crypto/encryptor_nss.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) 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_ENCRYPTOR_H_ 5 #ifndef CRYPTO_ENCRYPTOR_H_
6 #define CRYPTO_ENCRYPTOR_H_ 6 #define CRYPTO_ENCRYPTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 const base::StringPiece& input, 118 const base::StringPiece& input,
119 std::string* output); 119 std::string* output);
120 std::string iv_; 120 std::string iv_;
121 #elif defined(USE_NSS) || defined(OS_WIN) || defined(OS_MACOSX) 121 #elif defined(USE_NSS) || defined(OS_WIN) || defined(OS_MACOSX)
122 bool Crypt(PK11Context* context, 122 bool Crypt(PK11Context* context,
123 const base::StringPiece& input, 123 const base::StringPiece& input,
124 std::string* output); 124 std::string* output);
125 bool CryptCTR(PK11Context* context, 125 bool CryptCTR(PK11Context* context,
126 const base::StringPiece& input, 126 const base::StringPiece& input,
127 std::string* output); 127 std::string* output);
128 ScopedPK11Slot slot_;
129 ScopedSECItem param_; 128 ScopedSECItem param_;
130 #endif 129 #endif
131 }; 130 };
132 131
133 } // namespace crypto 132 } // namespace crypto
134 133
135 #endif // CRYPTO_ENCRYPTOR_H_ 134 #endif // CRYPTO_ENCRYPTOR_H_
OLDNEW
« no previous file with comments | « no previous file | crypto/encryptor_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698