Shaka Packager SDK
Loading...
Searching...
No Matches
raw_key_encryption_flags.h
1// Copyright 2014 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// Defines command line flags for raw key encryption.
8
9#ifndef PACKAGER_APP_RAW_KEY_ENCRYPTION_FLAGS_H_
10#define PACKAGER_APP_RAW_KEY_ENCRYPTION_FLAGS_H_
11
12#include <string>
13
14#include <absl/flags/declare.h>
15
16#include <packager/utils/absl_flag_hexbytes.h>
17
18ABSL_DECLARE_FLAG(bool, enable_raw_key_encryption);
19ABSL_DECLARE_FLAG(bool, enable_raw_key_decryption);
20ABSL_DECLARE_FLAG(shaka::HexBytes, key_id);
21ABSL_DECLARE_FLAG(shaka::HexBytes, key);
22ABSL_DECLARE_FLAG(std::string, keys);
23ABSL_DECLARE_FLAG(shaka::HexBytes, iv);
24ABSL_DECLARE_FLAG(shaka::HexBytes, pssh);
25
26namespace shaka {
27
31
32} // namespace shaka
33
34#endif // PACKAGER_APP_RAW_KEY_ENCRYPTION_FLAGS_H_
All the methods that are virtual are virtual for mocking.
bool ValidateRawKeyCryptoFlags()