7 #ifndef PACKAGER_MEDIA_PUBLIC_CRYPTO_PARAMS_H_
8 #define PACKAGER_MEDIA_PUBLIC_CRYPTO_PARAMS_H_
30 enum class SigningKeyType {
40 std::vector<uint8_t>
key;
42 std::vector<uint8_t>
iv;
95 std::vector<uint8_t>
key;
102 std::vector<uint8_t>
iv;
107 using StreamLabel = std::string;
109 std::vector<uint8_t> key_id;
110 std::vector<uint8_t> key;
133 static constexpr uint32_t kProtectionSchemeCbc1 = 0x63626331;
134 static constexpr uint32_t kProtectionSchemeCens = 0x63656E73;
135 static constexpr uint32_t kProtectionSchemeCbcs = 0x63626373;
152 StreamType stream_type = kUnknown;
159 float frame_rate = 0;
164 int number_of_channels = 0;
173 std::function<std::string(const EncryptedStreamAttributes& stream_attributes)>
187 using StreamLabel = std::string;
189 std::vector<uint8_t> key_id;
190 std::vector<uint8_t> key;
211 #endif // PACKAGER_MEDIA_PUBLIC_CRYPTO_PARAMS_H_
std::string client_cert_private_key_file
Absolute path to the private key file.
std::vector< uint8_t > iv
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
static constexpr double kNoKeyRotation
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.
double clear_lead_in_seconds
Clear lead duration in seconds.
WidevineSigner signer
Signer credential for Widevine license / key server.
bool vp9_subsample_encryption
Enable/disable subsample encryption for VP9.
std::map< StreamLabel, KeyPair > key_map
std::string key_server_url
Widevine license / key server URL.
std::vector< uint8_t > pssh
std::map< StreamLabel, KeyPair > key_map
std::string signer_name
Name of the signer / content provider.
std::vector< uint8_t > key
Provides a raw Playready Key.
SigningKeyType signing_key_type
Widevine encryption parameters.
Raw key decryption parameters, i.e. with key parameters provided.
Raw key encryption parameters, i.e. with key parameters provided.
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.
static constexpr uint32_t kProtectionSchemeCenc
The protection scheme: "cenc", "cens", "cbc1", "cbcs".
std::string program_identifier
Playready program identifier.
std::string key
RSA signing private key.
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.