30 lines
783 B
C++
30 lines
783 B
C++
// 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
|
|
//
|
|
// 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>
|
|
|
|
DECLARE_bool(enable_fixed_key_encryption);
|
|
DECLARE_bool(enable_fixed_key_decryption);
|
|
DECLARE_string(key_id);
|
|
DECLARE_string(key);
|
|
DECLARE_string(iv);
|
|
DECLARE_string(pssh);
|
|
|
|
namespace shaka {
|
|
|
|
/// Validate fixed encryption/decryption flags.
|
|
/// @return true on success, false otherwise.
|
|
bool ValidateFixedCryptoFlags();
|
|
|
|
} // namespace shaka
|
|
|
|
#endif // APP_FIXED_KEY_ENCRYPTION_FLAGS_H_
|