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

Side by Side Diff: media/webm/webm_crypt_helpers.h

Issue 10829470: Support for parsing encrypted WebM streams by src. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed bug with playing latest encrypted WebM. Addressing comments. Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
ddorwin 2012/09/01 16:46:41 Same as the other helper file - two files for one
fgalligan1 2013/03/09 01:10:59 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_WEBM_WEBM_CRYPT_HELPERS_H_
6 #define MEDIA_WEBM_WEBM_CRYPT_HELPERS_H_
7
8 #include "base/basictypes.h"
9
10 #include "base/memory/scoped_ptr.h"
11 #include "media/base/decoder_buffer.h"
12
13 namespace media {
14
15 // Returns an initialized DecoderBuffer which can be sent to the Decryptor if
ddorwin 2012/09/01 16:46:41 nit: , which
16 // the stream is encrypted or sent to the Decoder if the stream is not
17 // encrypted. Currently encrypted streams must be WebM.
xhwang 2012/08/29 05:08:14 This function should not worry about how the buffe
ddorwin 2012/09/01 16:46:41 Isn't the "Currently..." sentence implicit in the
18 // Every encrypted Block has an HMAC and IV prepended to it.
19 // Current encrypted WebM request for comments specification is here
20 // http://wiki.webmproject.org/encryption/webm-encryption-rfc
21 // If encrypted, skip past the HMAC to get the buffer. Encrypted buffers
ddorwin 2012/09/01 16:46:41 This probably needs to be updated to handle verifi
fgalligan1 2013/03/09 01:10:59 hmac removed.
22 // must include the IV and the encrypted frame because the decryptor will
23 // verify this data before decryption. The HMAC and IV will be copied into
24 // DecryptConfig.
25 scoped_refptr<DecoderBuffer> WebMCopyBufferCheckIfEncrypted(
ddorwin 2012/09/01 16:46:41 The function name does not "flow" - it's two separ
26 const uint8* data, int data_size,
27 const uint8* key_id, int key_id_size);
xhwang 2012/08/29 05:08:14 The only reason we use pointer/size for initData i
28
29 } // webkit_media
ddorwin 2012/09/01 16:46:41 media
fgalligan1 2013/03/09 01:10:59 Done.
30
31 #endif // MEDIA_WEBM_WEBM_CRYPT_HELPERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698