30 lines
801 B
C++
30 lines
801 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 edash_packager {
|
|
|
|
/// Validate fixed encryption/decryption flags.
|
|
/// @return true on success, false otherwise.
|
|
bool ValidateFixedCryptoFlags();
|
|
|
|
} // namespace edash_packager
|
|
|
|
#endif // APP_FIXED_KEY_ENCRYPTION_FLAGS_H_
|