2014-02-14 23:21:05 +00:00
|
|
|
// Copyright 2014 Google Inc. All rights reserved.
|
|
|
|
//
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file or at
|
|
|
|
// https://developers.google.com/open-source/licenses/bsd
|
2014-01-15 22:44:11 +00:00
|
|
|
//
|
|
|
|
// Defines command line flags for widevine_encryption.
|
|
|
|
|
|
|
|
#ifndef APP_WIDEVINE_ENCRYPTION_FLAGS_H_
|
|
|
|
#define APP_WIDEVINE_ENCRYPTION_FLAGS_H_
|
|
|
|
|
|
|
|
#include <gflags/gflags.h>
|
|
|
|
|
2017-06-14 23:18:16 +00:00
|
|
|
#include "packager/app/gflags_hex_bytes.h"
|
|
|
|
|
2014-05-08 21:02:36 +00:00
|
|
|
DECLARE_bool(enable_widevine_encryption);
|
2014-08-20 23:51:15 +00:00
|
|
|
DECLARE_bool(enable_widevine_decryption);
|
2016-03-21 18:09:24 +00:00
|
|
|
DECLARE_bool(include_common_pssh);
|
2014-05-08 21:02:36 +00:00
|
|
|
DECLARE_string(key_server_url);
|
2017-06-14 23:18:16 +00:00
|
|
|
DECLARE_hex_bytes(content_id);
|
2014-05-08 22:58:07 +00:00
|
|
|
DECLARE_string(policy);
|
2014-05-08 21:02:36 +00:00
|
|
|
DECLARE_int32(max_sd_pixels);
|
2016-11-11 23:17:17 +00:00
|
|
|
DECLARE_int32(max_hd_pixels);
|
|
|
|
DECLARE_int32(max_uhd1_pixels);
|
2014-05-08 21:02:36 +00:00
|
|
|
DECLARE_string(signer);
|
2017-06-14 23:18:16 +00:00
|
|
|
DECLARE_hex_bytes(aes_signing_key);
|
|
|
|
DECLARE_hex_bytes(aes_signing_iv);
|
2014-05-08 21:02:36 +00:00
|
|
|
DECLARE_string(rsa_signing_key_path);
|
|
|
|
DECLARE_int32(crypto_period_duration);
|
2014-03-22 01:03:39 +00:00
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2014-10-13 22:06:48 +00:00
|
|
|
|
|
|
|
/// Validate widevine encryption/decryption flags.
|
|
|
|
/// @return true on success, false otherwise.
|
|
|
|
bool ValidateWidevineCryptoFlags();
|
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
} // namespace shaka
|
2014-10-13 22:06:48 +00:00
|
|
|
|
2014-01-15 22:44:11 +00:00
|
|
|
#endif // APP_WIDEVINE_ENCRYPTION_FLAGS_H_
|