7 #ifndef PACKAGER_MEDIA_PUBLIC_CRYPTO_PARAMS_H_ 8 #define PACKAGER_MEDIA_PUBLIC_CRYPTO_PARAMS_H_ 30 enum class SigningKeyType {
37 SigningKeyType signing_key_type = SigningKeyType::kNone;
40 std::vector<uint8_t>
key;
42 std::vector<uint8_t>
iv;
58 bool include_common_pssh =
false;
95 std::vector<uint8_t>
key;
103 std::vector<uint8_t>
iv;
109 using StreamLabel = std::string;
111 std::vector<uint8_t> key_id;
112 std::vector<uint8_t> key;
132 double clear_lead_in_seconds = 0;
134 static constexpr uint32_t kProtectionSchemeCenc = 0x63656E63;
135 static constexpr uint32_t kProtectionSchemeCbc1 = 0x63626331;
136 static constexpr uint32_t kProtectionSchemeCens = 0x63656E73;
137 static constexpr uint32_t kProtectionSchemeCbcs = 0x63626373;
138 uint32_t protection_scheme = kProtectionSchemeCenc;
141 static constexpr
double kNoKeyRotation = 0;
142 double crypto_period_duration_in_seconds = kNoKeyRotation;
144 bool vp9_subsample_encryption =
true;
154 StreamType stream_type = kUnknown;
161 float frame_rate = 0;
166 int number_of_channels = 0;
175 std::function<std::string(const EncryptedStreamAttributes& stream_attributes)>
200 #endif // PACKAGER_MEDIA_PUBLIC_CRYPTO_PARAMS_H_ std::string client_cert_private_key_file
Absolute path to the private key file.
std::string key_server_url
Widevine license / key server URL.
std::string key_server_url
Playready license / key server URL.
KeyProvider
Encryption / decryption key providers.
Widevine decryption parameters.
std::function< std::string(const EncryptedStreamAttributes &stream_attributes)> stream_label_func
WidevineSigner signer
Signer credential for Widevine license / key server.
std::vector< uint8_t > content_id
Content identifier.
std::string client_cert_private_key_password
Password to the private key file.
WidevineSigner signer
Signer credential for Widevine license / key server.
All the methods that are virtual are virtual for mocking.
std::string key_server_url
Widevine license / key server URL.
Raw key encryption/decryption parameters, i.e. with key parameters provided.
std::string signer_name
Name of the signer / content provider.
std::map< StreamLabel, KeyInfo > key_map
std::vector< uint8_t > key
Provides a raw Playready Key.
std::vector< uint8_t > iv
Widevine encryption parameters.
std::vector< uint8_t > key_id
Provides a raw Playready KeyId.
Encrypted stream information that is used to determine stream label.
std::vector< uint8_t > key
AES signing key.
std::string policy
The name of a stored policy, which specifies DRM content rights.
std::string program_identifier
Playready program identifier.
std::string key
RSA signing private key.
std::vector< uint8_t > pssh
Signer credential for Widevine license server.
std::vector< uint8_t > group_id
Group identifier, if present licenses will belong to this group.
std::vector< uint8_t > iv
AES signing IV.
std::string client_cert_file
Absolute path to client certificate file.