| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chromecast/media/base/decrypt_context_impl_clearkey.h" | 5 #include "chromecast/media/base/decrypt_context_impl_clearkey.h" |
| 6 | 6 |
| 7 #include <openssl/aes.h> | |
| 8 #include <string.h> | 7 #include <string.h> |
| 9 | 8 |
| 10 #include <memory> | 9 #include <memory> |
| 11 #include <string> | 10 #include <string> |
| 12 #include <vector> | 11 #include <vector> |
| 13 | 12 |
| 14 #include "base/logging.h" | 13 #include "base/logging.h" |
| 15 #include "chromecast/public/media/cast_decoder_buffer.h" | 14 #include "chromecast/public/media/cast_decoder_buffer.h" |
| 16 #include "chromecast/public/media/cast_decrypt_config.h" | 15 #include "chromecast/public/media/cast_decrypt_config.h" |
| 17 #include "crypto/symmetric_key.h" | 16 #include "crypto/symmetric_key.h" |
| 17 #include "third_party/boringssl/src/include/openssl/aes.h" |
| 18 | 18 |
| 19 namespace chromecast { | 19 namespace chromecast { |
| 20 namespace media { | 20 namespace media { |
| 21 | 21 |
| 22 DecryptContextImplClearKey::DecryptContextImplClearKey( | 22 DecryptContextImplClearKey::DecryptContextImplClearKey( |
| 23 crypto::SymmetricKey* key) | 23 crypto::SymmetricKey* key) |
| 24 : DecryptContextImpl(KEY_SYSTEM_CLEAR_KEY), key_(key) { | 24 : DecryptContextImpl(KEY_SYSTEM_CLEAR_KEY), key_(key) { |
| 25 CHECK(key); | 25 CHECK(key); |
| 26 } | 26 } |
| 27 | 27 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 } | 87 } |
| 88 return true; | 88 return true; |
| 89 } | 89 } |
| 90 | 90 |
| 91 bool DecryptContextImplClearKey::CanDecryptToBuffer() const { | 91 bool DecryptContextImplClearKey::CanDecryptToBuffer() const { |
| 92 return true; | 92 return true; |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace media | 95 } // namespace media |
| 96 } // namespace chromecast | 96 } // namespace chromecast |
| OLD | NEW |