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
12#include <packager/media/base/fourccs.h>
13#include <packager/media/base/protection_system_specific_info.h>
14
15namespace shaka {
16namespace media {
17
19 FourCC protection_scheme = FOURCC_cenc;
20 uint8_t crypt_byte_block = 0;
21 uint8_t skip_byte_block = 0;
22 uint8_t per_sample_iv_size = 0;
23 std::vector<uint8_t> constant_iv;
24 std::vector<uint8_t> key_id;
25 std::vector<ProtectionSystemSpecificInfo> key_system_info;
26 // Only populated for HLS AES-128 (kAes128ProtectionScheme). Holds the raw
27 // encryption key so TsWriter can perform segment-level CBC encryption.
28 std::vector<uint8_t> key;
29};
30
31} // namespace media
32} // namespace shaka
33
34#endif // PACKAGER_MEDIA_BASE_ENCRYPTION_CONFIG_H_
All the methods that are virtual are virtual for mocking.