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

Side by Side Diff: base/crypto/encryptor.h

Issue 1347002: Add Mac implementations of new SymmetricKey and Encryptor classes. (Closed)
Patch Set: Responding to feedback Created 10 years, 9 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 BASE_CRYPTO_ENCRYPTOR_H_ 5 #ifndef BASE_CRYPTO_ENCRYPTOR_H_
6 #define BASE_CRYPTO_ENCRYPTOR_H_ 6 #define BASE_CRYPTO_ENCRYPTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/crypto/symmetric_key.h" 10 #include "base/crypto/symmetric_key.h"
(...skipping 22 matching lines...) Expand all
33 33
34 // TODO(albertb): Support streaming encryption. 34 // TODO(albertb): Support streaming encryption.
35 35
36 private: 36 private:
37 Mode mode_; 37 Mode mode_;
38 scoped_ptr<SymmetricKey> key_; 38 scoped_ptr<SymmetricKey> key_;
39 39
40 #if defined(USE_NSS) 40 #if defined(USE_NSS)
41 ScopedPK11Slot slot_; 41 ScopedPK11Slot slot_;
42 ScopedSECItem param_; 42 ScopedSECItem param_;
43 #elif defined(OS_MACOSX)
44 bool Crypt(int /*CCOperation*/ op,
45 const std::string& input,
46 std::string* output);
47
48 std::string iv_;
43 #endif 49 #endif
44 }; 50 };
45 51
46 } // namespace base 52 } // namespace base
47 53
48 #endif // BASE_CRYPTO_ENCRYPTOR_H_ 54 #endif // BASE_CRYPTO_ENCRYPTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698