| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |