Can decrypt a KDM.
[libdcp.git] / src / util.h
index 6332ddc08f157a4f3ec50754f94b7a20408dc137..8b5f76bb79577056c0e39adb200105fc93352e9d 100644 (file)
 #include <openjpeg.h>
 #include "types.h"
 
+namespace xmlpp {
+       class Element;
+}
+
 namespace libdcp {
 
 class ARGBFrame;
+class CertificateChain;
 class GammaLUT;
 class XYZsRGBLUT;
 
@@ -62,6 +67,12 @@ extern bool empty_or_white_space (std::string s);
 extern opj_image_t* decompress_j2k (uint8_t* data, int64_t size, int reduce);
 extern boost::shared_ptr<ARGBFrame> xyz_to_rgb (opj_image_t* xyz_frame, boost::shared_ptr<const GammaLUT>, boost::shared_ptr<const GammaLUT>);
 
+extern void init ();
+
+extern void sign (xmlpp::Element* parent, CertificateChain const & certificates, std::string const & signer_key);
+extern void add_signature_value (xmlpp::Element* parent, CertificateChain const & certificates, std::string const & signer_key, std::string const & ns);
+extern void add_signer (xmlpp::Element* parent, CertificateChain const & certificates, std::string const & ns);
+       
 }
 
 #endif