| 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/cma/pipeline/decrypt_util.h" | 5 #include "chromecast/media/cma/pipeline/decrypt_util.h" |
| 6 | 6 |
| 7 #include <openssl/aes.h> | 7 #include <openssl/aes.h> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "chromecast/media/cma/base/decoder_buffer_base.h" | 11 #include "chromecast/media/base/decoder_buffer_base.h" |
| 12 #include "chromecast/public/media/cast_decrypt_config.h" | 12 #include "chromecast/public/media/cast_decrypt_config.h" |
| 13 #include "crypto/symmetric_key.h" | 13 #include "crypto/symmetric_key.h" |
| 14 #include "media/base/decoder_buffer.h" | 14 #include "media/base/decoder_buffer.h" |
| 15 | 15 |
| 16 namespace chromecast { | 16 namespace chromecast { |
| 17 namespace media { | 17 namespace media { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 class DecoderBufferClear : public DecoderBufferBase { | 21 class DecoderBufferClear : public DecoderBufferBase { |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 data + offset, data + offset, cypher_bytes, &aes_key, | 135 data + offset, data + offset, cypher_bytes, &aes_key, |
| 136 aes_iv, ecount_buf, &encrypted_byte_offset); | 136 aes_iv, ecount_buf, &encrypted_byte_offset); |
| 137 offset += cypher_bytes; | 137 offset += cypher_bytes; |
| 138 } | 138 } |
| 139 | 139 |
| 140 return scoped_refptr<DecoderBufferBase>(new DecoderBufferClear(buffer)); | 140 return scoped_refptr<DecoderBufferBase>(new DecoderBufferClear(buffer)); |
| 141 } | 141 } |
| 142 | 142 |
| 143 } // namespace media | 143 } // namespace media |
| 144 } // namespace chromecast | 144 } // namespace chromecast |
| OLD | NEW |