summaryrefslogtreecommitdiff
path: root/src/kdm.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-07 00:39:15 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-07 00:39:15 +0100
commit932b942a51bef4e2dd2de9f83aa5b68ad07f60f9 (patch)
tree40f81e0b4b2e04f46bab243e9c94ff24b8bcb2ef /src/kdm.h
parent4313456938d34d93239194e914b82e7a5ae14c1c (diff)
Working decryption via KDM.
Diffstat (limited to 'src/kdm.h')
-rw-r--r--src/kdm.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/kdm.h b/src/kdm.h
index 0b450987..0159470f 100644
--- a/src/kdm.h
+++ b/src/kdm.h
@@ -17,6 +17,9 @@
*/
+#ifndef LIBDCP_KDM_H
+#define LIBDCP_KDM_H
+
#include <boost/filesystem.hpp>
namespace libdcp {
@@ -54,8 +57,12 @@ public:
return _not_valid_after;
}
- std::string key_data () const {
- return _key_data;
+ std::string key_string () const {
+ return _key_string;
+ }
+
+ unsigned char const * key_raw () const {
+ return _key_raw;
}
private:
@@ -70,7 +77,8 @@ private:
std::string _key_id;
std::string _not_valid_before;
std::string _not_valid_after;
- std::string _key_data;
+ std::string _key_string;
+ unsigned char _key_raw[16];
};
class KDM
@@ -89,4 +97,4 @@ private:
}
-
+#endif