Shaka Packager SDK
Loading...
Searching...
No Matches
encryption_config.h
1// Copyright 2017 Google LLC. All rights reserved.
2//
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file or at
5// https://developers.google.com/open-source/licenses/bsd
6
7#ifndef PACKAGER_MEDIA_BASE_ENCRYPTION_CONFIG_H_
8#define PACKAGER_MEDIA_BASE_ENCRYPTION_CONFIG_H_
9
10#include <cstdint>
11#include <vector>
12
13#include <packager/media/base/fourccs.h>
14#include <packager/media/base/protection_system_specific_info.h>
15
16namespace shaka {
17namespace media {
18
20 FourCC protection_scheme = FOURCC_cenc;
21 uint8_t crypt_byte_block = 0;
22 uint8_t skip_byte_block = 0;
23 uint8_t per_sample_iv_size = 0;
24 std::vector<uint8_t> constant_iv;
25 std::vector<uint8_t> key_id;
26 std::vector<ProtectionSystemSpecificInfo> key_system_info;
27 // Only populated for HLS AES-128 (kAes128ProtectionScheme). Holds the raw
28 // encryption key so TsWriter can perform segment-level CBC encryption.
29 std::vector<uint8_t> key;
30};
31
32} // namespace media
33} // namespace shaka
34
35#endif // PACKAGER_MEDIA_BASE_ENCRYPTION_CONFIG_H_
All the methods that are virtual are virtual for mocking.