Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "media/crypto/decryptor_helpers.h" | |
| 6 | |
| 7 #include "media/base/decrypt_config.h" | |
| 8 | |
| 9 namespace media { | |
| 10 | |
| 11 std::string GenerateCounterBlock(uint64 iv) { | |
| 12 std::string counter_block(reinterpret_cast<char*>(&iv), sizeof(iv)); | |
|
ddorwin
2012/09/01 16:46:41
I wonder if we'd be better off reserving the final
| |
| 13 counter_block.append(DecryptConfig::kDecryptionKeySize - sizeof(iv), 0); | |
| 14 return counter_block; | |
| 15 } | |
| 16 | |
| 17 } // media | |
|
xhwang
2012/08/29 05:08:14
// namespace media
| |
| OLD | NEW |