swaroop: basics of encrypted MP4 playback.
[dcpomatic.git] / src / lib / decrypted_ecinema_kdm.h
index b0fc2064d65b8c42b0d4af0421be87d1ed73bf0b..f61402b7bffab17f5638741197bc361f5e4436ae 100644 (file)
 class DecryptedECinemaKDM
 {
 public:
-       DecryptedECinemaKDM (dcp::Key content_key);
+       DecryptedECinemaKDM (std::string id, dcp::Key content_key);
+       DecryptedECinemaKDM (EncryptedECinemaKDM kdm, std::string private_key);
 
        EncryptedECinemaKDM encrypt (dcp::Certificate recipient);
 
+       std::string id () const {
+               return _id;
+       }
+
+       dcp::Key key () const {
+               return _content_key;
+       }
+
 private:
+       std::string _id;
        /** unenecrypted content key */
        dcp::Key _content_key;
 };