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 fixed key encryption.
|
|
|
|
|
|
|
|
#ifndef APP_FIXED_KEY_ENCRYPTION_FLAGS_H_
|
|
|
|
#define APP_FIXED_KEY_ENCRYPTION_FLAGS_H_
|
|
|
|
|
|
|
|
#include <gflags/gflags.h>
|
|
|
|
|
2017-05-22 20:31:41 +00:00
|
|
|
// TODO(kqyang): s/fixed/raw/.
|
2014-05-08 21:02:36 +00:00
|
|
|
DECLARE_bool(enable_fixed_key_encryption);
|
2014-08-25 22:51:19 +00:00
|
|
|
DECLARE_bool(enable_fixed_key_decryption);
|
2014-05-08 21:02:36 +00:00
|
|
|
DECLARE_string(key_id);
|
|
|
|
DECLARE_string(key);
|
2015-09-25 22:48:18 +00:00
|
|
|
DECLARE_string(iv);
|
2014-05-08 21:02:36 +00:00
|
|
|
DECLARE_string(pssh);
|
2014-01-15 22:44:11 +00:00
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2014-10-13 22:06:48 +00:00
|
|
|
|
|
|
|
/// Validate fixed encryption/decryption flags.
|
|
|
|
/// @return true on success, false otherwise.
|
|
|
|
bool ValidateFixedCryptoFlags();
|
|
|
|
|
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_FIXED_KEY_ENCRYPTION_FLAGS_H_
|