diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-09-21 20:16:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-09-21 20:16:11 +0100 |
| commit | 66ef19cdb8ab4e4613762acee98a2bcb999ab65c (patch) | |
| tree | 10cc30f8f0758e12fe7a7119d3b898dbdca7dcfa /src/kdm.h | |
| parent | 864bbcc3f293bf60c05fda02b0d15c3f604eacc8 (diff) | |
Unbuilt KDM changes.
Diffstat (limited to 'src/kdm.h')
| -rw-r--r-- | src/kdm.h | 42 |
1 files changed, 8 insertions, 34 deletions
@@ -28,49 +28,23 @@ namespace libdcp { /** A single key for encrypting or decrypting an MXF. One or more of these * are delivered in a KDM. */ -class KDMKey +class KDMKey : public boost::noncopyable { public: - KDMKey (unsigned char const *, int); - - std::string structure_id () const { - return _structure_id; - } - - std::string signer_thumbprint () const { - return _signer_thumbprint; - } - - std::string cpl_id () const { - return _cpl_id; - } - - std::string key_type () const { - return _key_type; - } - - std::string key_id () const { - return _key_id; - } - - std::string not_valid_before () const { - return _not_valid_before; - } - - std::string not_valid_after () const { - return _not_valid_after; - } + KDMKey (uint8_t const *, int); Key key () const { return _key; } private: - std::string get (unsigned char const **, int) const; - std::string get_uuid (unsigned char const **, int) const; + void get (uint8_t *, uint8_t const **, int) const; + std::string get (uint8_t const **, int) const; + std::string get_uuid (uint8_t const **) const; + void put (uint8_t **, uint8_t const *, int) const; + void put_uuid (uint8_t **, std::string) const; - std::string _structure_id; - std::string _signer_thumbprint; + uint8_t _signer_thumbprint[20]; std::string _cpl_id; std::string _not_valid_before; std::string _not_valid_after; |
