Shaka Packager SDK
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 <absl/flags/declare.h>
13 #include <absl/flags/flag.h>
14 
15 #include <packager/utils/absl_flag_hexbytes.h>
16 
17 ABSL_DECLARE_FLAG(bool, enable_raw_key_encryption);
18 ABSL_DECLARE_FLAG(bool, enable_raw_key_decryption);
19 ABSL_DECLARE_FLAG(shaka::HexBytes, key_id);
20 ABSL_DECLARE_FLAG(shaka::HexBytes, key);
21 ABSL_DECLARE_FLAG(std::string, keys);
22 ABSL_DECLARE_FLAG(shaka::HexBytes, iv);
23 ABSL_DECLARE_FLAG(shaka::HexBytes, pssh);
24 
25 namespace shaka {
26 
30 
31 } // namespace shaka
32 
33 #endif // PACKAGER_APP_RAW_KEY_ENCRYPTION_FLAGS_H_
All the methods that are virtual are virtual for mocking.
Definition: crypto_flags.cc:66
bool ValidateRawKeyCryptoFlags()