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